?? guess2.java
字號:
class Guess2 {
public static void main(String args[])
throws java.io.IOException {
int i;
char num ='6';
System.out.println("a number between 0 and 10.");
System.out.print("what is it: ");
i = System.in.read();
// 從鍵盤上輸入一個數字
if(i == num) System.out.println("You are talent");
else System.out.println("You're wrong , try again");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -