String a = "123";
StringBuffer stringBuffer = new StringBuffer(a);
String b
= stringBuffer.reverse().toString();