java.util.List接口的方法subList()的说明及使用注意事项

JDK中,List接口有一个实例方法List<E> subList(int fromIndex, int toIndex),其作用是返回一个以fromIndex为起始索引(包含),以toIndex为终止索引(不包含)的子列表(List)。   一、subList简述     原型:List<E> subList(int fromIndex,int toIndex)       1、返回列表中指定的
相关文章
相关标签/搜索