print each item in arraylist java code example Example: how to print arraylist Arrays.toString(list.toArray())