how to print out contents of arraylist code example Example: displaying an arraylist in java Arrays.toString(list.toArray())