Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.Arrays;

public class Main {
    public static Boolean[][] getEmptyMatrix(int sizeX, int sizeY) {
        Boolean[][] matrix = new Boolean[sizeX][sizeY];
        if (sizeX > 0) {
            for (int i = 0; i < matrix.length; i++) {
                Arrays.fill(matrix[i], false);
            }
        }

        return matrix;
    }
}