?? intcheck.java
字號:
public class IntCheck {
public static void main(String[] arguments) {
if (arguments.length == 1) {
try {
int number = Integer.parseInt(arguments[0]);
System.out.println(number + " is an integer.");
} catch (NumberFormatException nfe) {
System.out.println(arguments[0] + " is not an integer.");
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -