xandy.java
来自「java Labyrinth game;Provides two kinds t」· Java 代码 · 共 33 行
JAVA
33 行
package src;
/*
* 用于暂存必可达点坐标
*/
public class XandY {
private int x, y;
public XandY(int x, int y) {
this.x = x;
this.y = y;
}
public XandY() {
x = y = 1;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
public void setX(int x) {
this.x = x;
}
public void setY(int y) {
this.y = y;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?