FileDocCategorySizeDatePackage
ReverseString.javaAPI DocExample295Tue Dec 12 18:58:06 GMT 2000None

ReverseString

public class ReverseString extends Object

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.StringreverseIt(java.lang.String source)

        int i, len = source.length();
        StringBuffer dest = new StringBuffer(len);

        for (i = (len - 1); i >= 0; i--)
            dest.append(source.charAt(i));
        return dest.toString();