PrintWriter Class. What does Create a new PrintWriter, without automatic line flushing, from an existing OutputStream mean?
<p><code>PrintWriter(OutputStream out)</code> this method does not automatic line flushing.</p>

<pre><code>PrintWriter(OutputStream out, boolean autoFlush) 
</code></pre>

<p>This method does automatic line flushing. </p>

<p>My question is what is line flushing?</p>

<pre><code>    public static void main(String[] args) throws FileNotFoundException {
        int myInt = 2;



        PrintWriter outFile = new PrintWriter(System.out);

        outFile.println();
        outFile.println(myInt);

    }
}
</code></pre>

<p>the output of the program is nothing WHy?</p>

<p>If i add in True in the PrintWriter construtor, it prints out 2 in the console. </p>

<p>Ex:</p>

<pre><code>PrintWriter outFile = new PrintWriter(System.out, true);
</code></pre>

<p>So what does line flushing mean? Thanks</p>
