mainclass.java

来自「定义了几个类」· Java 代码 · 共 15 行

JAVA
15
字号

import p2.Point;
import p3.circle;
public class Mainclass
{   
    
	public static void main(String agrs[])
	{
		Point p=new Point(2,3);
	    circle c=new circle(p,4);
		System.out.println("Point of p is p.x="+p.getx()+"  p.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(2,4,5)"+c.relation(new circle(2,4,5)));
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?