- gainWeight() - Method in class homeworks.hw3.Animal
-
This method increases the weight attribute by 1.
- gainWeight(double) - Method in class homeworks.hw3.Animal
-
This method increase the weight attribute by weight.
- getAnimal(int) - Method in class homeworks.hw3.Farm
-
This method gets the Animal at the specified index
- getAnimals() - Method in class homeworks.hw3.Farm
-
- getAverageWeightOfAllAnimals() - Method in class homeworks.hw3.Farm
-
This method will compute the average weight of all elements in the array
- getBirthYear() - Method in class homeworks.hw3.Animal
-
Getter method for birthYear.
- getFarmName() - Method in class homeworks.hw3.Farm
-
This method returns the value of the String farmName
- getFirstAnimal() - Method in class homeworks.hw3.Farm
-
- getGender() - Method in class homeworks.hw3.Animal
-
Getter method for gender.
- getLastAnimal() - Method in class homeworks.hw3.Farm
-
This method will get the last Animal in the array
- getName() - Method in class homeworks.hw3.Animal
-
Getter method for name.
- getNumAnimals() - Method in class homeworks.hw3.Farm
-
- getNumberOfAnimalsAboveWeight(double) - Method in class homeworks.hw3.Farm
-
This method will scan and count the number of elements in the array with a weight above that of the parameter
- getNumberOfAnimalsBelowWeight(double) - Method in class homeworks.hw3.Farm
-
This method will scan and count the number of Animal objects in the animals array with a weight below that of the parameter
- getTotalWeightOfAllAnimals() - Method in class homeworks.hw3.Farm
-
This method will compute the sum of the weight of all elements in the array
- getWeight() - Method in class homeworks.hw3.Animal
-
Getter method for weight.