List也可以取她的子List,方法是subList(int fromIndex, int toIndex),根据文档,subList包括fromIndex,但不包括toIndex。 如: List l1 = l.subList(1,3); 得到的是l中的第2个和第3个元素。