📄 buildastring.java
字号:
import javax.swing.*;
public class BuildAString
{
public static void main(String[] args)
{
double length, width, area;
String output;
length = 27.3;
output = "The length of the rectangle is " + length;
width = 13.4;
output += "\nThe width of the rectangle is " + width;
area = length * width;
output += "\nThe area of the rectangle is " + area;
JOptionPane.showMessageDialog(null, output, "Program 3-5",
JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -