Here you can find the source of printMatrixList( Collection extends Object[][]> collection)
public static void printMatrixList( Collection<? extends Object[][]> collection)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static void printMatrixList( Collection<? extends Object[][]> collection) { System.out.println("*** Start of list"); for (Object[][] matrix : collection) { printMatrix(matrix);//w w w .j a va 2 s . c o m System.out.println("-----"); } System.out.println("*** End of list"); } public static void printMatrix(Object[][] matrix) { System.out.println("_"); for (Object[] array : matrix) { System.out.print("|"); for (Object value : array) System.out.print(value + "\t"); System.out.println("|"); } System.out.println("`"); } }