how to make an arraylist java

Java
ArrayList<Integer> integerArray = new ArrayList<Integer>();
ArrayList<String> integerArray = new ArrayList<String>();
ArrayList<Double> integerArray = new ArrayList<Double>();
//... keep replacing what is inside the <> with the appropriate
//data type
ArrayList<Integer> integerArray = new ArrayList<Integer>();
ArrayList<String> stringArray = new ArrayList<String>();
ArrayList<Double> doubleArray = new ArrayList<Double>();
//... keep replacing what is inside the <> with the appropriate
//data typeArrayList<Type> name = new ArrayList<Type>();
Source

Also in Java: