Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static ArrayList<String> cutString(ArrayList<String> list, int begin, int end) { ArrayList<String> newList = new ArrayList<>(); for (int i = begin; i < end; i++) { newList.add(list.get(i)); } return newList; } }