?? halfloop.java
字號:
class HalfLoop {
public static void main(String[] arguments) {
int[] denver = { 15000006, 18810000, 20752110 };
int[] philadelphia = { 15020000, 18708000, 21348000 };
int[] total = new int[denver.length];
int sum = 0;
for (int i = 0; i < denver.length; i++) {
total[i] = denver[i] + philadelphia[i];
System.out.println((i + 1993) + " production: "
+ total[i]);
sum += total[i];
}
System.out.println("Average production: "
+ (sum / denver.length));
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -