-
Create java files to make this code compile and run.
-
What five objects are created in the main?
The dogs ArrayList, 3 dogs (four-legged Fido, three-legged Fido, and four-legged Alfie), and a Comparator.
-
Can you spot the Comparator constructor call? Where is the class definition for the Comparator?
The Comparator constructor call is on line 16 in the main. The class definition for the Comparator is in the override method immediately below the Comparator constructor call.
zhenphos / cisc275-spring2020-first-git Goto Github PK
View Code? Open in Web Editor NEWCISC275 Spring 2020 First Git