blob: 08d5305a6b87ad32ed4aef2005a5d0e41d7787b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Listing1902.java */
import java.io.*;
public class Listing1902
{
public static void main(String[] args)
{
try {
DataOutputStream out = new DataOutputStream(
new BufferedOutputStream(
new FileOutputStream("test.txt")));
out.writeInt(1);
out.writeInt(-1);
out.writeDouble(Math.PI);
out.writeUTF("h��liches");
out.writeUTF("Entlein");
out.close();
} catch (IOException e) {
System.err.println(e.toString());
}
}
}
|