public static Set<Student> getStudent(Comparator<Student> cmp) {
Set studentSet;
if(cmp!=null){
studentSet = new TreeSet<Student>(cmp);
}else {
studentSet = new TreeSet<Student>();
}
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = "";
try {
while(true){
line = br.readLine();
if(line==null||"".equals(line)) break;
String[] arr = line.split(",");
Student s = new Student(arr[0],Integer.parseInt(arr[1]),Integer.parseInt(arr[2]),Integer.parseInt(arr[3]));
studentSet.add(s);
}
br.close();
} catch (IOException e) {
e.printStackTrace();
}