Code example for Joiner

Methods: join

0
        } 
 
        public static void header(Format format, List<String> names, PrintStream out) {
            switch (format) {
                case TSV:
                    out.printf("%s\n", withTabs.join(names));
                    break; 
                case CSV:
                    out.printf("%s\n", withCommas.join(names));
                    break; 
            } 
        } 
 
        public static int generateFile(Options opts, SchemaSampler s, PrintStream out, int count) {
            for (int i = 0; i < count; i++) {
                format(opts.format, opts.quote, s.getFieldNames(), s.sample(), out);
            } 
            return count;
        } 
 
Contextual code suggestions in your IDE  Get Codota for Java