round.java

来自「用于简单的图形的程序」· Java 代码 · 共 24 行

JAVA
24
字号
import java.util.Scanner;

public class round extends graph {
	round() {
		System.out.println("Please input offset about x & y & r");
		Scanner in1 = new Scanner(System.in);
		Scanner in2 = new Scanner(System.in);
		Scanner in3 = new Scanner(System.in);
		double x, y, r;
		x = in1.nextDouble();
		y = in1.nextDouble();
		r = in1.nextDouble();
		System.out.println("construct completed");
		System.out.println("This round info is:");
		System.out.print("Area is: ");
		mularea s2 = new mularea();
		System.out.println(s2.area(r));
		System.out.print("Girth is: ");
		mulgirth c2 = new mulgirth();
		System.out.println(c2.girth(r));

	}
}

⌨️ 快捷键说明

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