how to print out array list code example Example: how to print arraylist Arrays.toString(list.toArray())