Here you can find the source of printBoard(List> board)
protected static void printBoard(List<List<Integer>> board)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**/* ww w .ja va 2s . c o m*/ * */ protected static void printBoard(List<List<Integer>> board) { for (int i = 0; i < board.size(); i++) { for (int j = 0; j < board.get(i).size(); j++) { System.out.print(board.get(i).get(j) + ", "); } System.out.println(""); } } }