Collections.sort(list.subList(0,3));Note: '3' here is excluded from sorting
在文档中对此进行了描述:
公共列表subList(int fromIndex,int toIndex)
返回此列表中指定的fromIndex(包括)和toIndex(不包括)之间的视图。

Collections.sort(list.subList(0,3));Note: '3' here is excluded from sorting
在文档中对此进行了描述:
公共列表subList(int fromIndex,int toIndex)
返回此列表中指定的fromIndex(包括)和toIndex(不包括)之间的视图。