Commit 423ad246 authored by 9611046's avatar 9611046

adds Land.java

parent af58303b
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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment