Here you can find the source of printArrayList(ArrayList> set)
public static void printArrayList(ArrayList<?> set)
//package com.java2s; import java.util.ArrayList; public class Main { public static void printArrayList(ArrayList<?> set) { for (Object thing : set) { System.out.println(thing.toString()); }/*from w w w .ja v a 2 s. co m*/ } }