java array to arraylist

Java
List<Element> list = Arrays.asList(array);new ArrayList<>(Arrays.asList(array))
new ArrayList<>(Arrays.asList(array));
Source

Also in Java: