Here you can find the source of printList(List> l)
public static void printList(List<?> l)
//package com.java2s; import java.util.*; public class Main { public static void printList(List<?> l) { // System.out.println("List: " + l + " items: " + l.size()); // System.out.println("List with items: " + l.size()); for (Object o : l) System.out.println(o); }/* ww w .j av a 2 s. c o m*/ }