title: Make it so that the console will display whatever the user IS typing at the bottom?
body: <p>I have a program that prints output to the command prompt but suppose this happens.</p>
  
  <blockquote>
    <p>while (true) { System.out.println("Something"); }</p>
  </blockquote>
  
  <p>And then in another thread the program will get input from the user.</p>
  
  <pre><code>BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
  try { input = reader.readLine(); } catch ( Exception e ) { /* Do Nothing */ }
  </code></pre>
  
  <p>Now, there are two threads being executed at the same time, And if I try to type <em>Hello World</em>, this will happen;</p>
  
  <pre><code>Something
  Something
  Something
  Something
  HSomething
  elloSomething
  Something W
  Something orl
  Something d
  Something
  </code></pre>
  
  <p>Is there a way so that whatever the user is typing remains at the bottom, I want it to be like this;</p>
  
  <pre><code>Something
  Something
  Something
  Something
  Something
  Something
  Something
  Hello World
  Something
  </code></pre>
  
  <p>P.S: The reader can still tell which the user typed and what the program printed. But the user will find it very hard to tell which is which.
  P.P.S: Suppose that it's like this;</p>
  
  <pre><code>Something
  Something
  Hello World
  Something
  </code></pre>
  
  <p>Because the program printed right after the user pressed Enter; I hope you know what i want.</p>