Description: 1. According to an existing file d: \ student.csv, read all the student data in an ArrayList. ArrayList type of elements in the Student type. 2. Will be in accordance with the group number of this ArrayList groups, construct a HashMap. Map key is the group number, value is an ArrayList, the arraylist contains all in this group under the Student 3. Traverse the HashMap, print out each group of students under the student number. Note that the required number printed school other than the first 3 characters. Such as the school number is HSG1001, print is the 1001 prompt: 1. String.split (" ," ) method can be used to obtain an array 2. Can map.keySet.contains (obj) method to determine whether it contains a certain element
To Search:
File list (Check if you may need any files):
新建文件夹\student.csv
..........\test2.rar
..........\上机2.doc
新建文件夹