?? example3_5.java
字號:
/* 計算長方體體積 */
import javax.swing.*;
class Box
{
double volume(double width,double height,double depth)
{
return width * height * depth;
}
}
public class Example3_5
{
public static void main(String args[])
{
Box box = new Box();
double v;
v = box.volume(3,4,5);
JOptionPane.showMessageDialog(null,"長方體體積="+v);
System.exit(0);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -