DodecahedronList2 { public DodecahedronList2 readFile(String fileNameIn) throws IOException { Scanner scanFile = new Scanner(new File(fileNameIn)); String dodObjListName = ""; String label = ""; String color = ""; double edge = 0; dodObjListName = scanFile.nextLine(); while (scanFile.hasNext()) { label = scanFile.nextLine(); color = scanFile.nextLine(); edge = Double.parseDouble(scanFile.nextLine()); Dodecahedron dodObj = new Dodecahedron(label, color, edge); dodObjList[arrSize] = dodObj; arrSize++; } DodecahedronList2 dodList = new DodecahedronList2(dodObjListName, dodObjList, arrSize); return dodList; } DodecahedronList2(String listNameIn, Dodecahedron[] dodObjListIn,
                                                             int arrSizeIn); String getName(); int numberOfDodecahedrons(); double totalSurfaceArea(); double totalVolume(); double averageSurfaceArea(); double averageVolume(); double averageSurfaceToVolumeRatio(); String toString(); String summaryInfo(); Dodecahedron[] getList(); DodecahedronList2 readFile(String fileNameIn); void addDodecahedron(String labelIn, String colorIn, double edgeIn); Dodecahedron findDodecahedron(String labelIn); Dodecahedron deleteDodecahedron(String labelIn); boolean editDodecahedron(String labelIn, String colorIn, 
                                                   double edgeIn); Dodecahedron findDodecahedronWithShortestEdge(); Dodecahedron findDodecahedronWithLongestEdge(); Dodecahedron findDodecahedronWithSmallestVolume(); Dodecahedron findDodecahedronWithLargestVolume();  }
@Test public void readFileTest() throws IOException { DodecahedronList2 dodList2 = new DodecahedronList2("test list", null, 0); dodList2 = dodList2.readFile("dodecahedron_data_1.txt"); Assert.assertEquals("", "Dodecahedron Test List", dodList2.getName()); }