📄 j_datainputstream.java
字号:
// ////////////////////////////////////////////////////////
//
// J_DataInputStream.java
//
// ////////////////////////////////////////////////////////
import java.io.*;
public class J_DataInputStream
{
public static void main(String args[])
{
byte b;
try
{
FileInputStream t= new FileInputStream("out.txt");
DataInputStream f =new DataInputStream(t);
while (true)
{
try
{
b= f.readByte( );
b-=(byte)'0';
System.out.print(b);
}
catch(EOFException ex)
{
System.out.println( );
break;
} // End of try/catch structure.
} // End of loop: while
f.close( );
}
catch(Exception e)
{
System.out.println(e);
} // End of try/catch structure.
} // End of method: main
} // End of class: J_DataInputStream
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -