📄 roundstuffdemo.java
字号:
import java.util.Scanner;
public class RoundStuffDemo
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
System.out.println("Enter radius:");
double radius = keyboard.nextDouble( );
System.out.println("A circle of radius "
+ radius + " inches");
System.out.println("has an area of " +
RoundStuff.area(radius) + " square inches.");
System.out.println("A sphere of radius "
+ radius + " inches");
System.out.println("has an volume of " +
RoundStuff.volume(radius) + " cubic inches.");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -