Java инициализируйте список со значениями
List<String> list = Arrays.asList("first", "second", "third");
yasser azizi
List<String> list = Arrays.asList("first", "second", "third");
List<MyType> myList = new ArrayList<MyType>();
ArrayList<Type> list = new ArrayList<Type>(Arrays.asList(
elem1, elem2,..., elemN
));