java \r character not working in Eclipse
<p>Please advise why this is not working, I am sure you can figure out what I am trying to do here:</p>

<pre><code>            while (socketChannel.read(buffer) &gt; 0) {
            buffer.flip();
            fileChannel.write(buffer);
            buffer.clear();
            bigDecimal = bigDecimal.add(kilobyteDecimal);
            System.out.print("\\ \r"+"| \r"+"/ \r"+"-- \r");
        }
</code></pre>

<p>expecting to see rotating characters but instead I am getting a new line in every print statement.</p>

<p>Many Thanks</p>