Question: I need help making a program for my class. So far I have the start method. I need to have a create method:static method and
I need help making a program for my class. So far I have the start method. I need to have a create method:static method and a display method.

The create method: a static method
This method has a parameter a file name such as shape.txt, and returns an array list of shapes (rectangles, triangles, and circles). This method reads shape data from a file, and create shapes. The data set for each shape consists of the type of the shape, the name of the shape and sizes of the shape. When an invalid triangle is made (the second triangle stored in the file), the program should be terminated. You must add more data into this file to test more shapes.
The display method: a static method
This method should be designed with an ArrayList
Part V: Helper class: Create a helper class with three helper methods to test the design of shape package. start method: A static method This method is called in main in ShapeDriver. It calls method create that creates/returns a list of shapes. It also calls method display that displays the list of shapes in order. public static void start throws FileNotFoundException Scanner input-new Scanner (System.in) string fileName ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
