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