1.

subList(startIndex, endIndex);//startIndex开始,到endIndex结束,不包含endIndex!

 

2.

集合排序可以实现 java.util.Comparator 接口,根据不同的返回值决定是倒叙还是正序排列。

相关文章: