Categories
October Surprise 2024

Reverse a string in Java – Stack Overflow

I have “Hello World” kept in a String variable named hi. I need to print it, but reversed. How can I do this? I understand there is some kind of a function already built-in into Java that does th…