Не могу понять что не так;
package com.javarush.task.task22.task2213;
public class Field {
private int width;
private int height;
private int[][] matrix;
public Field(int width, int height) {
this.width = width;
this.height = height;
matrix = new int[height][width];
}
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
public int[][] getMatrix() {
return matrix;
}
void print(){
int[][] matrix = this.matrix;
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
if (matrix[y][x] == 0) {
System.out.println(".");
} else {
System.out.println("X");
}
}
System.out.println();
}
}
void removeFullLines() {
}
Integer getValue(int x, int y) {
return null;
}
void setValue(int x, int y, int value) {
}
}