Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0304 Get a sub list from a list

List<E> subList(int fromIndex, int toIndex) Returns a view of the portion of this List between fromIndex, inclusive, and toIndex, exclusive.