Here you can find the source of printElementsUnderCollection(Collection> collection)
Parameter | Description |
---|---|
collection | the collection |
public static void printElementsUnderCollection(Collection<?> collection)
//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); } } }