Question: *Using Java language and with ArrayList Create a program that will read the attached file * that contains a list of student records in CSV
*Using Java language and with ArrayList
Create a program that will read the attached file* that contains a list of student records in CSV (comma separated values) format. Then sort the data by last name, in ascending order (a-z). Then write the resulting records into a new file. You must use exception handling when reading or writing to a file. Store your Person objects into an ArrayList .
* Tommy,Lee,Jones,32,Y,Rd,M Tommy,Lee,Jones,32,Y,Rd,M Sally,May,Jones,34,Y,Bl,F Sally,May,Jones,34,Y,Bl,F Johny,Bee,Good,22,N,Bk,M Johny,Bee,Good,22,N,Bk,M John,Hecktor,Quency,23,N,Br,M John,Hecktor,Quency,23,N,Br,M Victoria,Jane,Hanks,19,Y,Rd,F Victoria,Jane,Hanks,19,Y,Rd,F Michelle,Sally,Woods,42,N,Rd,F Michelle,Sally,Woods,42,N,Rd,F tom,henry,james,43,N,Bk,M tom,henry,james,43,N,Bk,M suzzie,que,donner,45,N,Rd,F suzzie,que,donner,45,N,Rd,F henry,glenn,hoan,30,Y,Bk,M henry,glenn,hoan,30,Y,Bk,M tommy,yom,e,3,N,Bl,M tommy,yom,e,3,N,Bl,M s,d,f,3,N,Rd,M s,d,f,3,N,Rd,M j,h,f,2,N,Rd,M j,h,f,2,N,Rd,M
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
