title: How do I remove/replace characters from the Windows CMD lines?
body: <p>I have seen how other programs can delete/replace existing lines in the Windows CMD.<br />
  How can I do this in Java?</p>
  <p>Like this:</p>
  <p><a href="https://i.stack.imgur.com/qXmql.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qXmql.png" alt="enter image description here" /></a></p>
  <p>For example, I want to change this line to hi without displaying a new line or clearing the screen.</p>