赞
踩
JDK中,List接口有一个实例方法List<E> subList(int fromIndex, int toIndex),其作用是返回一个以fromIndex为起始索引(包含),以toIndex为终止索引(不包含)的子列表(List)。
List也可以取她的子List,方法是subList(int fromIndex, int toIndex),根据文档,subList包括fromIndex,但不包括toIndex。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。