public int getValue(int row, int column) {
int x;
if (row == 0 && column == 0) {x = 1;};
if (row == 0 && column == 1) {x = 2;};
if (row == 0 && column == 2) {x = 3;};
if (row == 0 && column == 3) {x = 4;};
return x;
}
为什么我得到"局部变量x可能尚未初始化" java中的错误?我该如何解决这个问题?