📄 debug8_1.java
字号:
package questions.c8;
import java.io.*;
public class Debug8_1 {
public static void main( String[] args )
throws IOException {
InputStream input;
OutputStream output;
if ( args.length >= 2 ) {
input = new FileInputStream( args[0] );
output = new FileOutputStream( args[1] );
} else {
input = System.in;
output = System.out;
}
int c;
try {
while ( ( c = input.read() ) != -1 ) {
// change blanks to underscores
if ( c == ' ' ) {
c = '_';
}
output.write( c );
}
}
catch( IOException iox ) {
System.out.println( iox );
}
finally {
input.close();
output.close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -