Here you can find the source of printout(List
private static void printout(List<String> record)
//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(); } }