Java Collection Print print(Collection coll)

Here you can find the source of print(Collection coll)

Description

print

License

Open Source License

Declaration

public static <T> void print(Collection<T> coll) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

public class Main {
    public static <T> void print(Collection<T> coll) {
        if (coll == null)
            throw new NullPointerException();
        if (coll.isEmpty())
            return;
        for (T t : coll) {
            System.out.println(t);
        }/*from   w w w .  j a  v  a2  s .  c o m*/
    }
}

Related

  1. print(Collection c)
  2. print(Collection c)
  3. print(Collection collection, String delim)
  4. print(Collection c, String separator)
  5. print(Collection c)
  6. print(Collection elements)
  7. print(java.util.Collection collection)
  8. printCollection(Collection c)
  9. printCollection(Collection col)