initialize arraylist with one element code example
Example 1: list java initialize
List<MyType> myList = new ArrayList<MyType>();
Example 2: initialize arraylist
ArrayList<Type> list = new ArrayList<Type>(Arrays.asList(
elem1, elem2,..., elemN
));