Here you can find the source of printArrayListInt(ArrayList
Parameter | Description |
---|---|
list | a parameter |
public static void printArrayListInt(ArrayList<Integer> list)
//package com.java2s; import java.util.ArrayList; public class Main { /**//from ww w .j a va 2 s. c o m * @param list */ public static void printArrayListInt(ArrayList<Integer> list) { for (int i = 0; i < list.size(); i++) { System.out.println("\t" + i + ": [" + list.get(i) + "]"); } } }