Java - New Line Character Issue
<p>I have a code like,</p>

<pre><code>String str = " " ; 

while(  cond ) {

  str = str + "\n" ;

}
</code></pre>

<p>Now, I don't know why at the time of printing, the output string is not printing the newline character. However, when I add any other character like ( str = str + "c"), it is printing properly. Can anybody help me, how to solve this problem and why this happening ?</p>
