point2d.java
来自「一些基本的java程序源代码」· Java 代码 · 共 23 行
JAVA
23 行
package point2D;
public class Point2D {
private int x;
private int y;
public Point2D(){
}
public Point2D(int x,int y){
this.x=x;
this.y=y;
}
public void setX(int x){
this.x=x;
}
public void setY(int y){
this.y=y;
}
public int getX(){return x;}
public int getY(){return y;}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?