PROGRAMMING:SDUST Java reading and sorting of students' scores
1) Enter multiple lines of student's score information from the keyboard, each line represents a student's score of a course, and the last line ends with "exit". The format of each line of text is: student number, name, course name, grade. The program can read the students and their grades, and read the students with the same student number and their grades into a student class object list;
2) After reading the data of students and their grades, the program can arrange the students in stulist in descending order according to the average score (if the average score is the same, the number of students with small number is in the front), and * * output the sorted student number, name and grade * *.
###Input format:
Each line is a student's name, student number, course name and grade (integer). Different lines can be the scores of different courses of the same student (the same student with the same student number).
###Output format:
According to the students' average score descending order (the students with the same average score and smaller number are in the front) of the students' ranking (refer to the example for the specific output format).
###Input example:
```in
Xiao Ming, 2001, Java, 88
Xiao Gang, 2002, Java, 78
Xiaoding, 2003, Java, 56
Xiaohong, 2004, Java, 85
Xiao Ming, 2001, python, 84
Xiao Gang, 2002, python, 98
Xiaoding, 2003, JavaWeb, 66
Xiao Hong, 2004, algorithm, 87
exit
```
###Output example:
```out
No1:2002, Xiaogang
No2:2001, Xiaoming
No3:2004, Xiaohong
No4:2003, Xiaoding
```
answer:If there is no answer, please comment
2) After reading the data of students and their grades, the program can arrange the students in stulist in descending order according to the average score (if the average score is the same, the number of students with small number is in the front), and * * output the sorted student number, name and grade * *.
###Input format:
Each line is a student's name, student number, course name and grade (integer). Different lines can be the scores of different courses of the same student (the same student with the same student number).
###Output format:
According to the students' average score descending order (the students with the same average score and smaller number are in the front) of the students' ranking (refer to the example for the specific output format).
###Input example:
```in
Xiao Ming, 2001, Java, 88
Xiao Gang, 2002, Java, 78
Xiaoding, 2003, Java, 56
Xiaohong, 2004, Java, 85
Xiao Ming, 2001, python, 84
Xiao Gang, 2002, python, 98
Xiaoding, 2003, JavaWeb, 66
Xiao Hong, 2004, algorithm, 87
exit
```
###Output example:
```out
No1:2002, Xiaogang
No2:2001, Xiaoming
No3:2004, Xiaohong
No4:2003, Xiaoding
```
answer:If there is no answer, please comment