Good day!
I have an object student with the following attributes:
class Student
String name
Date birthday
I used arrayList to store the Student Objects
My problem is, how can I sort the StudentList by birthday using the collecitons sort?.
List <Student> studentList = new ArrayList<Student>();
How can I code it?
Collections.sort(????);
Thank you
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…