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