java string array to arraylist

Java
new ArrayList( Arrays.asList( new String[]{"abc", "def"} ) );new ArrayList<>(Arrays.asList(array));
Source

Also in Java: