java ArrayList sublist create new list code example Example: how to make a new arraylist java ArrayList<Type> name = new ArrayList<Type>();