sublist in java

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