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