执行要求
执行效果图
class SparseValue
public class SparseValue {
private int x;
private int y;
private int value;
private SparseValue next;
public SparseValue() {
}
public SparseValue(int x, int y, int value) {
this.x = x;
this.y = y;
this.value = value;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value