title: How can I print to the same line?
body: <p>I want to print a progress bar like so:</p>
  
  <pre class="lang-none prettyprint-override"><code>[#                    ] 1%
  [##                   ] 10%
  [##########           ] 50%
  </code></pre>
  
  <p>But these should all be printed to the same line in the terminal instead of a new one.
  What I mean by that is that each new line should replace the previous, it's not about using <code>print()</code> instead of <code>println()</code>.</p>
  
  <p>How can I do that in Java?</p>