Create ArrayList from array java

Java
new ArrayList<>(Arrays.asList(array));new ArrayList<>(Arrays.asList(array))

Source

Also in Java: