title: Reverse a string in Java
body: <p>I have <code>"Hello World"</code> kept in a String variable named <code>hi</code>.</p>
  
  <p>I need to print it, but reversed.</p>
  
  <p>How can I do this? I understand there is some kind of a function already built-in into Java that does that.</p>
  
  <p>Related: <a href="https://stackoverflow.com/questions/2441501/reverse-hello-world-in-java">Reverse each individual word of “Hello World” string with Java</a></p>