public static void write ( PrintStream out , Object ... objs ) { out . println ( Arrays . stream ( objs ) . map ( Object :: toString ) . map ( CSV :: quote ) . collect ( Collectors . joining ( "," ) ) ) ; }
Writes the objects string representations to the output as a line of CSV . The objects are converted to String quoted if necessary joined with commas and are written to the output followed by the line separator string .