?? getchar.java
字號:
import java.io.IOException;
public class getChar {
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自動生成方法存根
try {
if(System.in.read()=='q')
{
System.out.println("你按了鍵盤上的Q鍵!");
}
else
{
System.out.println("你沒有選擇Q鍵!");
}
} catch (IOException e) {
// TODO 自動生成 catch 塊
e.printStackTrace();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -