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  }

Generated with vim2html
Copyright © 2003-2004 by Chip Cuccio <http://norlug.org/~chipster/finger>