?? iconstd.java
字號:
// An interface that contains constants.
interface IConst {
int ARRAYSTAR = 0;
int ARRAYEND = 10;
String ERRORMSG = " ERROR! OVER ARRAY NUMBERS! ";
}
class IConstD implements IConst {
public static void main(String args[]) {
int nums[] = new int[ARRAYEND];
for(int i= ARRAYSTAR; i < 11; i++) {
if(i >= ARRAYEND) System.out.println(ERRORMSG);
else {
nums[i] = i;
System.out.print(nums[i] + " ");
}
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -