list根据对象中年龄升序排序

2020-01-09  本文已影响0人  阔阔飞翔

 students.sort((x, y) -> Integer.compare(x.getAge(), y.getAge()));

上一篇 下一篇

猜你喜欢

热点阅读