Here you can find the source of printStringList(List
public static void printStringList(List<String> list, String name)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static void printStringList(List<String> list, String name) { String output = ""; for (String text : list) { output += " '" + text + "' "; }/*from www. java 2 s .c o m*/ System.out.println("###########" + name + "########## " + output); } }