how to create an array list in java

Java
ArrayList<Type> name = new ArrayList<Type>();List<Integer> list = new ArrayList<>();
Source

Also in Java: