Here you can find the source of printStringArrayList(ArrayList
public static void printStringArrayList(ArrayList<String> list)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; public class Main { public static void printStringArrayList(ArrayList<String> list) { System.out.println("------------------"); for (String word : list) { System.out.println(word + " "); }/*from w ww .j av a 2s . com*/ System.out.println("\n------------------"); } }