?? inout.java
字號(hào):
//InOut.Java
import java.io.*;
public class InOut {
public static void main(String[] args) {
echo(System.in);
}
public static void echo(InputStream in) {
try {
while (true) {
int n = in.available();
if (n > 0) {
byte[ ] b = new byte[n];
int result = in.read(b);
if (result ==-1) {
break;
}
String s = new String(b);
System.out.print(s);
}
}
}
catch (IOException e) {
System.err.println(e);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -