13 lines
287 B
Java
13 lines
287 B
Java
|
//: io/ChangeSystemOut.java
|
||
|
// Turn System.out into a PrintWriter.
|
||
|
import java.io.*;
|
||
|
|
||
|
public class ChangeSystemOut {
|
||
|
public static void main(String[] args) {
|
||
|
PrintWriter out = new PrintWriter(System.out, true);
|
||
|
out.println("Hello, world");
|
||
|
}
|
||
|
} /* Output:
|
||
|
Hello, world
|
||
|
*///:~
|