Java Collections.sort 排序

Collections.sort(list, (h1, h2) -> h1.getName().compareTo(h2.getName()));

猜你喜欢

转载自www.cnblogs.com/hanjun0612/p/12808099.html