Java ArrayList Print printArray(ArrayList array)

Here you can find the source of printArray(ArrayList array)

Description

print Array

License

Open Source License

Declaration

public static <T> void printArray(ArrayList<T> array) 

Method Source Code

//package com.java2s;
/**/*from www  .  j a va 2s.  co  m*/
 * Project: napoli.client
 * 
 * File Created at Aug 12, 2009
 * $Id: NapoliTestUtil.java 150227 2012-02-29 09:22:16Z yanny.wangyy $
 * 
 * Copyright 2008 Alibaba.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("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 Alibaba.com.
 */

import java.util.ArrayList;

import java.util.Iterator;

public class Main {
    public static <T> void printArray(ArrayList<T> array) {
        Iterator it = array.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }
    }
}

Related

  1. print(ArrayList tokens)
  2. print(ArrayList l)
  3. print(ArrayList[] al)
  4. print(ArrayList lines, int targetColumn)
  5. print(ArrayList tokens, String symbol)
  6. printArrayArray(ArrayList> matrix)
  7. printArrayList(ArrayList arr)
  8. printArrayList(ArrayList set)
  9. printArrayList(ArrayList list)