Here you can find the source of subList(List list, int start, int end)
@SuppressWarnings({ "unchecked", "rawtypes" }) public static List subList(List list, int start, int end)
//package com.java2s; /*/*from w w w . j a v a 2 s. c om*/ * Ext GWT 2.2.5 - Ext for GWT * Copyright(c) 2007-2010, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ import java.util.ArrayList; import java.util.List; public class Main { @SuppressWarnings({ "unchecked", "rawtypes" }) public static List subList(List list, int start, int end) { List temp = new ArrayList(); for (int i = start; i < end; i++) { temp.add(list.get(i)); } return temp; } }