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

📄 circle.java

📁 this gives details of the network programming
💻 JAVA
字号:
// Circle class//// a Circle has an origin (a Point) and a radiuspublic class Circle {    public Point center;    public double radius;    // constructors    Circle() {	center = new Point(0,0);	radius = 0.0;    }        Circle(double x, double y, double r) {	center = new Point(x,y);	radius = r;    }    // Compute the area    public double Area() {	return Math.PI * radius * radius;    }	    // toString is called when you use System.out.println    public String toString() {	return "Center: " + center.toString() + 	    "  Radius: " + radius +	    "  Area: " + Area();    }}

⌨️ 快捷键说明

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