Here you can find the source of print(List> A, String mode)
public static void print(List<?> A, String mode)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static void print(int[] A) { for (int i = 0; i < A.length; i++) { System.out.print(A[i] + "\t"); }/*from w w w .j a v a2s .c o m*/ System.out.println(); } public static void print(List<?> A, String mode) { for (int i = 0; i < A.size(); i++) { System.out.print(A.get(i) + mode); } System.out.println(); } public static void print(List<?> A) { print(A, "\t"); } }