Yes you can use the method subList:
List<...> list2 = list1.subList(startIndex, endIndex);
This returns an idea of this part of the original list; it does not copy data.
If you want a copy:
List<...> list2 = new ArrayList<...> (list1.subList(startIndex, endIndex));
source
share