StringBuffer reverse() function in java
Java String Handling
StringBuffer reverse method in Java
StringBuffer reverse method in Java internally uses the algorithm to reverse the char position.
Syntax:
StringBuffer reverse();
Example:
StringBuffer sb = new StringBuffer(“Heera”);
Sb.reverse();
Sop(sb);//areeH