📄 rectangle.java
字号:
import java.lang.Math;
public class Rectangle {
double x1;
double x2;
double y1;
double y2;
public Rectangle(){
x1=0;
x2=0;
y1=1;
y2=1;
}
public Rectangle(double x11,double y11,double x12,double y12 ){
x1=x11;
y1=y11;
x2=x12;
y2=y12;
}
double getSqure(){
return Math.abs(x1-x2)*Math.abs(y1-y2);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -