initialize arraylist

Java
ArrayList<Type> str = new ArrayList<Type>();
       str.add("Geeks");
       str.add("for");
       str.add("Geeks");
ArrayList<Type> list = new ArrayList<Type>(Arrays.asList(
		elem1, elem2,..., elemN
        ));
Source

Also in Java: