Here you can find the source of printCollection(Collection extends Object> col)
Parameter | Description |
---|---|
col | the collection to print |
public static void printCollection(Collection<? extends Object> col)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { /** //from w w w . ja v a2 s . c o m * Provides a way to print a collection * @param col the collection to print */ public static void printCollection(Collection<? extends Object> col) { for (Object next : col) System.out.println(next.toString()); } }