Here you can find the source of printlnList(List> list)
public static void printlnList(List<?> list)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static void printlnList(List<?> list) { if (list != null) { for (Object o : list) { System.out.println(o.toString()); }// www . jav a 2s . c o m } else { System.out.println("list is null"); } } }