📄 main.java
字号:
import java.io.*;
class Main {
public static void main(String[] args) {
// Create a pb input stream with buf size of 10
PushbackInputStream in = new PushbackInputStream(System.in, 10);
byte[] buf = {'h', 'e', 'l', 'l', 'o', '\n'};
try {
in.unread(buf);
int c;
// Echo contents of pb stream to standard out.
while ((c=in.read()) >= 0) {
System.out.print((char)c); // hello ...
}
System.out.println();
} catch (IOException e) {}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -