?? exercise5_3.java
字號:
// Exercise5_3.java: Enter 10 integers and
// display the numbers in reverse order
import javax.swing.JOptionPane;
public class Exercise5_3 {
public static void main (String[] args) {
int[] num = new int[10];
for (int i = 0; i < 10; i++) {
// Read a number
String dataString = JOptionPane.showInputDialog(null,
"Read a number:",
"Exercise5_3", JOptionPane.QUESTION_MESSAGE);
num[i] = Integer.parseInt(dataString);
}
// Display the array
for (int i = 9; i >= 0; i--) {
System.out.println(num[i]);
}
System.exit(0);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -