[Java] java中List对象通用排序算法 →→→→→进入此内容的聊天室

来自 , 2021-02-12, 写在 Java, 查看 121 次.
URL http://www.code666.cn/view/d4fcc05b
  1. /**
  2.  * 学生实体类
  3.  * @author chenchuang
  4.  *
  5.  */
  6. public class Student {
  7.         public Student(int id, String name, int age) {
  8.                 super();
  9.                 this.id = id;
  10.                 this.name = name;
  11.                 this.age = age;
  12.         }
  13.  
  14.         private int id;
  15.         private String name;
  16.         private int age;
  17.  
  18.         public int getId() {
  19.                 return id;
  20.         }
  21.  
  22.         public void setId(int id) {
  23.                 this.id = id;
  24.         }
  25.  
  26.         public String getName() {
  27.                 return name;
  28.         }
  29.  
  30.         public void setName(String name) {
  31.                 this.name = name;
  32.         }
  33.  
  34.         public int getAge() {
  35.                 return age;
  36.         }
  37.  
  38.         public void setAge(int age) {
  39.                 this.age = age;
  40.         }
  41. }
  42.  
  43.  
  44. //java/6350

回复 " java中List对象通用排序算法"

这儿你可以回复上面这条便签

captcha