⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainclass.java

📁 (1) 编写一个代表圆柱体的Cylinder类
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -