Question: 1. Create java files to make this code compile and run. 2. What five objects are created in the main? 3. Can you spot the
1. Create java files to make this code compile and run.
2. What five objects are created in the main?
3. Can you spot the comparator constructor call? Where is the class definition for the comparator?

package dog; import java.utiL.ArrayList; import java.util.Collections; import java.utiL.Comparator; import java.util.List; public class MyCompara3 i public static void main(String[ args)i List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
