Java Collection Print printCollection(Collection col)

Here you can find the source of printCollection(Collection col)

Description

Provides a way to print a collection

License

Apache License

Parameter

Parameter Description
col the collection to print

Declaration

public static void printCollection(Collection<? extends Object> col) 

Method Source Code

//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());
    }
}

Related

  1. print(java.util.Collection collection)
  2. printCollection(Collection c)
  3. printCollection(Collection col)
  4. printCollection(Collection collection)
  5. printCollection(Collection l)
  6. printCollection(Collection collections)
  7. printCollection(final Collection collection)
  8. printCollection(String name, Collection collection)
  9. printCollectionDebug(Collection c)