36 lines
2.2 KiB
Plaintext
36 lines
2.2 KiB
Plaintext
#BlueJ class context
|
|
comment0.params=
|
|
comment0.target=Zoo()
|
|
comment0.text=\n\ Create\ an\ "empty"\ zoo\n
|
|
comment1.params=fileName
|
|
comment1.target=Zoo(java.lang.String)
|
|
comment1.text=\n\ Create\ a\ zoo\ and\ populate\ it\ using\ data\ from\ a\ text\ file\n
|
|
comment10.params=fileName
|
|
comment10.target=void\ readAnimalData(java.lang.String)
|
|
comment10.text=\n\ Reads\ animal\ data\ from\ a\ file\ and\ adds\ corresponding\ animals\ to\ the\ zoo\n\n\ @param\ \ \ <code>fileName</code>\ a\ <code>String</code>,\ the\ name\ of\ the\ \n\ \ \ \ \ \ \ \ \ \ text\ file\ in\ which\ the\ data\ is\ stored.\n\ \n\ @throws\ \ FileNotFoundException\n
|
|
comment2.params=animal
|
|
comment2.target=void\ storeAnimal(Animal)
|
|
comment2.text=\n\ Adds\ an\ animal\ to\ the\ zoo\n\n\ @param\ \ \ <code>animal</code>\ an\ <code>Animal</code>\ object,\ the\ animal\ to\ be\ added\n
|
|
comment3.params=listPosition
|
|
comment3.target=void\ showAnimal(int)
|
|
comment3.text=\n\ Shows\ an\ animal\ by\ printing\ it's\ details.\ \ This\ includes\n\ it's\ position\ in\ the\ collection.\n\n\ @param\ \ <code>listPosition</code>\ the\ position\ of\ the\ animal\n
|
|
comment4.params=
|
|
comment4.target=int\ numberOfAnimals()
|
|
comment4.text=\n\ Returns\ how\ many\ animals\ are\ stored\ in\ the\ collection\n\n\ @return\ \ \ the\ number\ of\ animals\ in\ the\ collection\n
|
|
comment5.params=
|
|
comment5.target=void\ showAllAnimals()
|
|
comment5.text=\n\ Displays\ all\ the\ animals\ in\ the\ collection\n\n
|
|
comment6.params=listPosition
|
|
comment6.target=void\ removeAnimal(int)
|
|
comment6.text=\n\ Remove\ an\ animal\ from\ the\ collection\n\n\ @param\ \ <code>listPosition</code>\ the\ position\ of\ the\ animal\n
|
|
comment7.params=
|
|
comment7.target=void\ populate()
|
|
comment7.text=\n\ Adds\ a\ pre-defined\ set\ of\ animals\ to\ the\ current\ collection\n\n
|
|
comment8.params=
|
|
comment8.target=void\ countAnimals()
|
|
comment8.text=\n\ Counts\ the\ number\ of\ lions,\ tigers\ and\ elephants\n\n
|
|
comment9.params=fileName
|
|
comment9.target=void\ writeAnimalData(java.lang.String)
|
|
comment9.text=\n\ Writes\ animal\ data\ to\ a\ file\n\n\ @param\ \ \ <code>fileName</code>\ a\ <code>String</code>,\ the\ name\ of\ the\ \n\ \ \ \ \ \ \ \ \ \ text\ file\ in\ which\ the\ data\ will\ be\ stored.\n\ \n\ @throws\ \ FileNotFoundException\n
|
|
numComments=11
|