Java List Print printout(List record)

Here you can find the source of printout(List record)

Description

printout

License

Apache License

Declaration

private static void printout(List<String> record) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    private static void printout(List<String> record) {
        boolean firstLoop = true;
        for (String s : record) {
            if (firstLoop) {
                firstLoop = false;//from  w  ww  . j  a va  2 s . co  m
            } else {
                System.out.print("|");
            }
            System.out.print(s);
        }
        System.out.println();
    }
}

Related

  1. println(List text)
  2. printlnList(List list)
  3. printMap(HashMap> listHashMap)
  4. printNonEmptyList(List list)
  5. printObjectList(List list)
  6. printPerformanceStats(String message, List iterationTimesInNanoseconds)
  7. printQueryResults(List res)
  8. printRules(List rules, Class clazz)
  9. printStats(final List shocktimes)

  10. HOME | Copyright © www.java2s.com 2016