how to make a set time out print an arraylist 1 second code example Example: print arraylist java Arrays.toString(list.toArray())