📄 ioapp.java
字号:
import java.io.*;class IOApp{ public static void main(String args[]) { String inputStr = ""; byte buffer[] = new byte[255]; System.out.println("Type a line of text. Just hit return to quit the program."); // Keep looping until the user types exit while( inputStr.indexOf( "exit" ) == -1 ) { try { System.in.read(buffer, 0, 255); inputStr = new String( buffer ); System.out.print("The line you typed was: "); System.out.println(inputStr); } catch ( IOException ex ) { System.out.println( ex ); } } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -