Cannot have a system.out.println in code, if you want the list to be visible for debugging purposes, create a logger using Logging.getLogger(class) and then write log statements at debug level