一、list排序
Collections.sort
Comparatorc= (o1, o2) -> { int olen1=o1.getX()*o1.getX()+o1.getY()+o1.getY(); int olen2=o2.getX()*o2.getX()+o2.getY()+o2.getY(); return olen1-olen2; }; Collections.sort(list,c);
二、Spring 创建

一、list排序
Collections.sort
Comparatorc= (o1, o2) -> { int olen1=o1.getX()*o1.getX()+o1.getY()+o1.getY(); int olen2=o2.getX()*o2.getX()+o2.getY()+o2.getY(); return olen1-olen2; }; Collections.sort(list,c);
二、Spring 创建