?? 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;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -