From 7595af3049d0b9758cca91f20f52e4966a691541 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 11 Oct 2020 23:30:09 +0100 Subject: [PATCH] Reformatting --- Personal/Interfaces/Animals/src/AnimalMain.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Personal/Interfaces/Animals/src/AnimalMain.java b/Personal/Interfaces/Animals/src/AnimalMain.java index 39e9ff3..a2e158b 100644 --- a/Personal/Interfaces/Animals/src/AnimalMain.java +++ b/Personal/Interfaces/Animals/src/AnimalMain.java @@ -8,13 +8,8 @@ public class AnimalMain { private static void displayAnimals() { // Creating an array of animal objects - AnimalHelper helper = new AnimalHelper(new Animal[] { - new Cow(), - new Cat(), - new Dog(), - new Horse() - }); - + AnimalHelper helper = new AnimalHelper(new Animal[] { new Cow(), new Cat(), new Dog(), new Horse() }); + // Displaying information about the animals helper.displayInformation(); helper.displayAveragePrice();