📄 cylindertest.java
字号:
import p2.Point;
public class CylinderTest
{
public static void main(String agrs[])
{
Cylinder cy1=new Cylinder(5,8,8,9);
Point p=new Point(3,4);
Cylinder cy2=new Cylinder(p,6,7);
Cylinder cy3=new Cylinder();
System.out.println("The volume of the Cylinder(p(3,4),6,7) is: "+cy2.volume());
System.out.println("The volume of the Cylinder() is: "+cy3.volume());
System.out.println("The surfaceArea of the Cylinder(p(3,4),6,7)is :"+cy2.surfaceArea());
System.out.println("The surfaceArea of the Cylinder()is :"+cy3.surfaceArea());
System.out.println(cy1.toString());
System.out.println(cy2.toString());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -