1 public class ReverseString { 2 public static String reverseIt(String source) { 3 int i, len = source.length(); 4 StringBuffer dest = new StringBuffer(len); 5 6 for (i = (len - 1); i >= 0; i--) 7 dest.append(source.charAt(i)); 8 return dest.toString(); 9 } 10 }