java how to create arraylist from array code example Example: Create ArrayList from array java new ArrayList<>(Arrays.asList(array))