Check out example codes for "sublist in java". It will help you in understanding the concepts better.

Code Example 1

ArrayList<String> list = new ArrayList<String>(); 
List<String> sublist = list.subList(2, 4);

Learn ReactJs, React Native from akashmittal.com