Here you can find the source of printMatrix(Object[][] matrix)
public static void printMatrix(Object[][] matrix)
//package com.java2s; //License from project: Open Source License public class Main { public static void printMatrix(Object[][] matrix) { for (Object[] wid : matrix) { for (Object type : wid) { System.out.print(type + " "); }/*ww w . ja v a 2 s . c o m*/ System.out.println(); } } }