14 lines
290 B
Java
14 lines
290 B
Java
// standardio/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
|
|
*/
|