blob: e43cb06e66feb182a368ddab23435b25c66ef423 (
plain)
1
2
3
4
5
6
7
|
//gepufferter nicht autoatischer flushender output
PrintWriter out = new PrintWriter(new BufferedWriter(
new OutputStreamWriter(new FileOutputStream(
FileDescriptor.out), StandardCharsets.UTF_8), 4096));
out.println("blub" + "a" + "b"); //zeile Ausgeben
out.println(String.format("%d %s", 5, "a")) // wie printf
out.close();//WICHTIG!
|