how to fprint numbers in a array list in java code example Example: displaying an arraylist in java Arrays.toString(list.toArray())