📄 point.java
字号:
public class Point {
private double x;
private double y;
public Point(){
x = 0;
y = 0;
//System.out.println("Point(){} Constructor!");
}
public Point (double x,double y) {
this.x = x;
this.y = y;
}
public Point(Point p) {
this.x = p.GetX();
this.y = p.GetY();
}
public void SetX (double X){
this.x = X;
};
public void SetY (double Y){
this.y = Y;
};
public double GetX (){
return this.x;
}
public double GetY (){
return this.y;
}
public boolean Check(){
if (x>0) {
if (y>0) {
return true;
}
else return false;
}
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -