Reformatting

master
sgoudham 4 years ago
parent 1010e508ce
commit 7595af3049
No known key found for this signature in database
GPG Key ID: EF51A29A50FB754C

@ -8,13 +8,8 @@ public class AnimalMain {
private static void displayAnimals() { private static void displayAnimals() {
// Creating an array of animal objects // Creating an array of animal objects
AnimalHelper helper = new AnimalHelper(new Animal[] { AnimalHelper helper = new AnimalHelper(new Animal[] { new Cow(), new Cat(), new Dog(), new Horse() });
new Cow(),
new Cat(),
new Dog(),
new Horse()
});
// Displaying information about the animals // Displaying information about the animals
helper.displayInformation(); helper.displayInformation();
helper.displayAveragePrice(); helper.displayAveragePrice();

Loading…
Cancel
Save