ToList( ) method to convert the array to a list and use ToArray( ) code example Example: array to arraylist new ArrayList<>(Arrays.asList(array));