对list集合中对象的多个属性进行排序
话不多说,直接上代码
public static void main(String[] args){
List<Apple> appleList = new ArrayList<>();
Apple apple = new Apple("red","china","200");
Apple apple2 = new Apple("green","EngLand","150");
Apple apple3 = ne
原创
2021-04-25 17:10:31 ·
866 阅读 ·
0 评论