title: Esc [2J how to achieve this in Java?
body: <p>Note: I need to clear the previous printed values in the console and need to position my cursor in [row][column]=0</p>
  
  <pre><code>System.out.println("Hello World");
  System.out.println("Hello Country");
  System.out.println("\033[0;0H"); //need to apply the escape sequence here
  System.out.println("Happy:)");
  </code></pre>
  
  <p>Expected Output:</p>
  
  <pre><code>Happy:)
  Hello Country
  </code></pre>
  
  <p>Am getting this output in this <a href="https://www.onlinegdb.com/r1rnszW1Q" rel="nofollow noreferrer">online compiler</a> but not in other compilers</p>