Java Collection Print printElementsUnderCollection(Collection collection)

Here you can find the source of printElementsUnderCollection(Collection collection)

Description

Prints the elements under collection.

License

Open Source License

Parameter

Parameter Description
collection the collection

Declaration

public static void printElementsUnderCollection(Collection<?> collection) 

Method Source Code

//package com.java2s;
/**//  ww w .  ja v a2  s. c om
 * Copyright (c) 2015 by sat, Inc.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of sat,  ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with sat.
 *
 *
 * @Project: Utils
 * @Author: amsathishkumar
 * @Version: 
 * @Description:  
 * @Date created: Apr 9, 2015
 */

import java.util.Collection;

public class Main {
    /**
     * Prints the elements under collection.
     *
     * @param collection the collection
     */
    public static void printElementsUnderCollection(Collection<?> collection) {
        for (Object object : collection) {
            System.out.println(object);
        }
    }
}

Related

  1. printCollection(final Collection collection)
  2. printCollection(String name, Collection collection)
  3. printCollectionDebug(Collection c)
  4. printCollectionSorted(Collection l, String indent)
  5. printElement(Collection pCollection, boolean pAllElement)
  6. printList(Collection collection)
  7. println(Collection lines, String suffix, String prefix)
  8. printMatrixList( Collection collection)
  9. printObjectArray(Collection valueArrays)