📄 inout.java
字号:
//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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -