?? dataoutputexample.java
字號(hào):
import java.io.*;
public class DataOutputExample
{
public static void main(String argv[])
{
try {
FileOutputStream fout = new FileOutputStream(argv[0]);
DataOutputStream dataOut = new DataOutputStream(fout);
double data;
for(int i=0; i<10; i++)
{
data = Math.random();
System.out.println(data);
dataOut.writeDouble(data);
}
dataOut.close();
fout.close();
}
catch (IOException e)
{
System.err.print(e);
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -