Mega Code Archive
Reversing the sequence of characters in a StringBuffer object with the reverse() method
public class MainClass {
public static void main(String[] arg) {
StringBuffer palindrome = new StringBuffer("so many dynamos");
palindrome.reverse();
System.out.println(palindrome);
}
}
somanyd ynam os