Here you can find the source of dumpCollection(Collection
public static <T> void dumpCollection(Collection<T> collection)
//package com.java2s; /*L/*from w w w. ja v a2 s. co m*/ * Copyright SAIC, Ellumen and RSNA (CTP) * * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details. */ import java.util.Collection; public class Main { public static <T> void dumpCollection(Collection<T> collection) { for (T o : collection) { System.out.println(o); } } }