How to Reverse a String without using reverse built in method or recursion in Java : Source code with example

Reversing a string is  used to create the mirror of the string .
This program is based on array without using api ,built in function or recursion .
for example :
if we pass the string " Alive is awesome "
then the reverse is :     emosewa si evilA

Here we pass the string to the reversestring() method which prints the character one by one in reverse order.



Demo :



reverse string java code program















About The Author

Subham Mittal has worked in Oracle for 3 years.
Enjoyed this post? Never miss out on future posts by subscribing JavaHungry