List subList(startIndex, endIndex);

1.

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

2.

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

原文地址:https://www.cnblogs.com/beenupper/p/3872903.html