Unwanted carriage return when getting input from terminal
<p>I've just started learning Java and have come across a little quirk I'm not sure how to solve. It's the same as <a href="http://stackoverflow.com/questions/1123869/eliminating-the-new-line-when-using-bufferedreader-method-to-get-user-input-using">this</a> question but the solution there doesn't work here. The problem there was thought to be the result of something to do with Netbeans, and compiling the code form the command line may solve the problem, but I <strong>am</strong> compiling and running from the command line.</p>

<p>Basically, when I run the following code (snipped for brevity)</p>

<pre><code>    System.out.println("Number: ");
    line = in.readLine();
</code></pre>

<p>I get the following output:</p>

<pre><code>Number:
//Input cursor is found here
</code></pre>

<p>I'm running the code using the Gnome Terminal that ships with Ubuntu. Does anyone know what's causing this?</p>
