Here you can find the source of subList(List
public static <T> List<T> subList(List<T> origin, int start, int length)
//package com.java2s; //License from project: Apache License import java.util.Arrays; import java.util.List; public class Main { public static <T> List<T> subList(List<T> origin, int start, int length) { return origin.subList(start, start + length); }/*from w w w. ja v a 2 s. c o m*/ public static <T> List<T> subList(List<T> origin, int start) { return origin.subList(start, origin.size()); } public static <T> List<T> subList(T[] origin, int start, int length) { return subList(Arrays.asList(origin), start, length); } public static <T> List<T> subList(T[] origin, int start) { return subList(Arrays.asList(origin), start); } }