how to convert array into array list code example Example: array to arraylist new ArrayList<>(Arrays.asList(array));