Reverse the characters of a given string
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
public class Temp {
public static void main(String[] args) {
String a = "Hello Java Galaxy";
System.out.println("
Original string: " + a);
StringBuffer b = new StringBuffer(a).reverse();
System.out.println("Reverse character string: " + b);
System.out.println("
");
}
}