Code example for PrintWriter

Methods: flush, println

0
    abstract public void doMain(String[] args) throws Exception;
 
 
    protected void println(String x) {
        if (this.out != null) {
            this.out.println(x);
            this.out.flush();
        } 
        else { 
            System.out.println(x);
        } 
    } 
 
}