📄 chapter19n5a.java
字号:
/** * program to demonstrate writing a binary file */import java.io.* ;public class Chapter19n5a { public static void main(String[] args) throws Exception { BufferedReader din = new BufferedReader(new InputStreamReader(System.in)) ; System.err.print("type file to write to ") ; System.err.flush() ; String fileName = din.readLine().trim() ; DataOutputStream dout = new DataOutputStream(new FileOutputStream(fileName)) ; System.err.print("type integer to write ") ; System.err.flush() ; String number = din.readLine().trim() ; int number1 = Integer.parseInt(number) ; dout.writeInt(number1) ; dout.close() ; } // end of main method } // end of class Chapter19n5a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -