mainclass.java
来自「(1) 编写一个代表圆柱体的Cylinder类」· Java 代码 · 共 20 行
JAVA
20 行
package p4;
import p2.Point;
import p3.circle;
public class Mainclass
{
public static void main(String agrs[])
{
Point p=new Point(3,4);
Point p1=new Point(3,4);
circle c=new circle(p,4);
System.out.println("Point x="+p.getx()+" y="+p.gety());
System.out.println("circle of c is c.center=("+c.center.x+","+c.center.y+") the radiu of c is"+c.r);
System.out.println("Relation of c(p,4) and c(p,5)"+c.relation(new circle(p,5)));
System.out.println(p.toString());
System.out.println(c.toString());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?