[java] How to print out all the elements of a List in Java?