Question: JAVA cONSIDER THIS CSV FILE Name, Alex, Bert, Carl, Dave, Elly, Fran, Gwen, Hank, Ivan, Jake, Kate, Luke, Myra, Neil, Omar, Page, Quin, Ruth, Sex,
JAVA
cONSIDER THIS CSV FILE
"Name", "Alex", "Bert", "Carl", "Dave", "Elly", "Fran", "Gwen", "Hank", "Ivan", "Jake", "Kate", "Luke", "Myra", "Neil", "Omar", "Page", "Quin", "Ruth", "Sex", "Age", "Height (in)", "Weight (lbs)" "M", 41, 74, 170 "M", 42, 68, 166 "M", 32, 70, 155 "M", 39, 72, 167 "F", 30, 66, 124 "F", 33, 66, 115 "F", 26, 64, 121 "M", 30, 71, 158 "M", 53, 72, 175 "M", 32, 69, 143 "F", 47, 69, 139 "M", 34, 72, 163 "F", 23, 62, 98 "M", 36, 75, 160 "M", 38, 70, 145 "F", 31, 67, 135 "M", 29, 71, 176 "F", 28, 65, 131
b. Create a PersonCDVDAO class in the appropriate package and create a readAll() method in it. Inspire from the TestSER1 test method code and place it under the readAll() method . The readAll() method should return a list of Person instances, sorted by their height. c. Create a TestSER2 class with a test() method that will invoke the PersonCSVDAO.readAll() instance and that will display it in the console. d. Add the test execution to the main method in the launcher class as the following // Previous code TestSER2.test() ;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
