Java Collection Print print(Collection c)

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

Description

print

License

Open Source License

Declaration

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

Method Source Code

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

import java.util.Collection;
import java.util.Iterator;

public class Main {
    public static <T> void print(Collection<T> c) {
        Iterator<T> it = c.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }/*from   ww  w.j ava 2 s  .c o  m*/
    }
}

Related

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