convert an arraylist to list in java code example Example: array to arraylist new ArrayList<>(Arrays.asList(array));