printList() changed to list(PrintWriter) for API consistency