Java面试题,List集合中根据对象的某一属性排序
例子:
public class Student{private String sname;
private int age;
public String getSname() {
return sname;
}
public void setSname(String sname) {
this.sname = sname;
}
public int getAge() {
原创
2017-06-08 15:16:32 ·
2175 阅读 ·
0 评论