Java List Sub List getSublist(List list, int i)

Here you can find the source of getSublist(List list, int i)

Description

get Sublist

License

Open Source License

Declaration

private static <T> List<T> getSublist(List<T> list, int i) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;

import java.util.List;

public class Main {
    private static <T> List<T> getSublist(List<T> list, int i) {
        List<T> sublist = new ArrayList<T>();
        for (int j = i; j < list.size(); j++) {
            sublist.add(list.get(j));/*w  ww .j a v a 2s .co  m*/
        }
        return sublist;
    }
}

Related

  1. getSubList(List entireList, Class cls)
  2. getSubList(List list, Class type)
  3. getSubList(List source, int nFrom, int nTo)
  4. getSubList(List allKeys, String part)
  5. getSubList(List list, int from, int maxnum)
  6. getSubList(List list, int start, int end)
  7. getSubList(List list, int start, int limit)
  8. getSubListFromStart(List list, int length)
  9. getSubListIndex(Object[] tofind, Object[] tokens)