how to change list to array in java code example Example: convert list to array in java Integer[] arr = new Integer[al.size()]; arr = al.toArray(arr);