public class Land { private int length; private int width; private int[][] landMatrix = new int[length][width]; public Land(int length, int width) { this.length = length; this.width = width; } public int getLength() { return length; } public int getWidth() { return width; } public int[][] getLandMatrix() { return landMatrix; } }