@Override
public int compare(student29 o1, student29 o2) {
int num = o1.getSum()-o2.getSum();
return num==0?1:num;
}
});
//BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("xxx.txt"));
BufferedWriter bw = new BufferedWriter(new FileWriter("scorse1.txt"));
while(ts.size()<5){
String s = sc.nextLine();
String [] arr = s.split(",");
for (int i = 0; i < arr.length; i++) {
int chinses = Integer.parseInt(arr[1]);
int math = Integer.parseInt(arr[2]);
int english = Integer.parseInt(arr[3]);