Here you can find the source of printCollection(List
public static void printCollection(List<String> s)
//package com.java2s; /**// w ww . java 2 s . c o m * * Contains Utility Functions for debugging like Printing i/o paths * * @author Alok Dhamanaskar * @see LICENSE (MIT style license file). * */ import java.util.List; public class Main { public static void printCollection(List<String> s) { for (String str : s) { System.out.println(str); } } }