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