?? ex2_2.java
字號:
import javax.swing.JOptionPane;public class EX2_2 { public static void main(String[] args) { double radius, height; double area, volume; radius = Double.parseDouble(JOptionPane.showInputDialog("輸入半徑:")); height = Double.parseDouble(JOptionPane.showInputDialog("輸入高度:")); area = Math.PI * radius * radius; volume = area * height; JOptionPane.showMessageDialog(null, "半徑為:" + radius + ", 高度為:" + height + "的圓柱體積是:" + volume); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -