Question: Use the following code to execute the code at the bottom: Finish with a UML diagram package labs.cscd2111ab6; import java.util.*; import lab6.cscd211Comparator.*; import lab.cscd211Inheritance.*; /**
Use the following code to execute the code at the bottom:

Finish with a UML diagram
package labs.cscd2111ab6; import java.util.*; import lab6.cscd211Comparator.*; import lab.cscd211Inheritance.*; /** * This lab is about simple inheritance with no * abstraction. */ public class CSCD211Lab6 { * The main method used to test the basic inheritance. Along with this main is * a PDF named results.pdf that shows my output from my run. * * @param args Representing the command line arguments * * @throws Exception If there are any Exceptions generated */ public static void main(String [] args) throws Exception { ArrayList myList = new ArrayList (5); myList.add(new CarEngine("General Motors", 137)); myList.add(new TruckEngine("Ford", 250, true)); myList.add(new CarEngine (134,"Toyota")); myList.add(new CarEngine("Ford", 134)); myList.add(new TruckEngine("Toyota", 200, false)); for (Engine e: myList) { System.out.println(e + " output of " + e.calcOutput(); }// end for System.out.println(); Collections. sort(myList); for (Engine e: myList) { System.out.println(e); }// end for System.out.println(); Collections. sort(myList, new Manufacturer Comparator(); for (Engine e: myList) { System.out.println(e); } // end for System.out.println(); }// end main }// end class .............. Car Engine Manufacturer: General Motors with HP of 137 output of 2 Truck Engine Manufacturer: Ford with HP of 250 is a diesel engine output of 2 Car Engine Manufacturer: Toyota with HP of 134 output of 2 Car Engine Manufacturer: Ford with HP of 134 output of 2 Truck Engine Manufacturer: Toyota with HP of 200 is NOT a diesel engine output of 5 Car Engine Manufacturer: Ford with HP of 134 Car Engine Manufacturer: Toyota with HP of 134 Car Engine Manufacturer: General Motors with HP of 137 Truck Engine - Manufacturer: Toyota with HP of 200 is NOT a diesel engine Truck Engine Manufacturer: Ford with HP of 250 is a diesel engine Car Engine Manufacturer: Ford with HP of 134 Truck Engine - Manufacturer: Ford with HP of 250 is a diesel engine Car Engine - Manufacturer: General Motors with HP of 137 Car Engine - Manufacturer: Toyota with HP of 134 Truck Engine - Manufacturer: Toyota with HP of 200 is NOT a diesel engine package labs.cscd2111ab6; import java.util.*; import lab6.cscd211Comparator.*; import lab.cscd211Inheritance.*; /** * This lab is about simple inheritance with no * abstraction. */ public class CSCD211Lab6 { * The main method used to test the basic inheritance. Along with this main is * a PDF named results.pdf that shows my output from my run. * * @param args Representing the command line arguments * * @throws Exception If there are any Exceptions generated */ public static void main(String [] args) throws Exception { ArrayList myList = new ArrayList (5); myList.add(new CarEngine("General Motors", 137)); myList.add(new TruckEngine("Ford", 250, true)); myList.add(new CarEngine (134,"Toyota")); myList.add(new CarEngine("Ford", 134)); myList.add(new TruckEngine("Toyota", 200, false)); for (Engine e: myList) { System.out.println(e + " output of " + e.calcOutput(); }// end for System.out.println(); Collections. sort(myList); for (Engine e: myList) { System.out.println(e); }// end for System.out.println(); Collections. sort(myList, new Manufacturer Comparator(); for (Engine e: myList) { System.out.println(e); } // end for System.out.println(); }// end main }// end class .............. Car Engine Manufacturer: General Motors with HP of 137 output of 2 Truck Engine Manufacturer: Ford with HP of 250 is a diesel engine output of 2 Car Engine Manufacturer: Toyota with HP of 134 output of 2 Car Engine Manufacturer: Ford with HP of 134 output of 2 Truck Engine Manufacturer: Toyota with HP of 200 is NOT a diesel engine output of 5 Car Engine Manufacturer: Ford with HP of 134 Car Engine Manufacturer: Toyota with HP of 134 Car Engine Manufacturer: General Motors with HP of 137 Truck Engine - Manufacturer: Toyota with HP of 200 is NOT a diesel engine Truck Engine Manufacturer: Ford with HP of 250 is a diesel engine Car Engine Manufacturer: Ford with HP of 134 Truck Engine - Manufacturer: Ford with HP of 250 is a diesel engine Car Engine - Manufacturer: General Motors with HP of 137 Car Engine - Manufacturer: Toyota with HP of 134 Truck Engine - Manufacturer: Toyota with HP of 200 is NOT a diesel engine