title: Eclipse: How can I get the cursor to appear at the latest point in the console?
body: <p>I'm using Eclipse to run the Java program below. When the program waits for the second line to be read, why does the cursor appear at the start of the line "Your first string is: "? How can I set the cursor to always appear at the latest point in the console?</p>
  
  <pre><code>public class Test {
  
      public static void main(String[] args) throws IOException {
          System.out.println("Enter first string: ");
  
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          String enteredText = br.readLine();
  
          System.out.println("Your first string is: " + enteredText);
  
          System.out.println("Enter second string: ");
          enteredText = br.readLine();
  
          System.out.println("Your second string is: " + enteredText);
      }
  }
  </code></pre>