Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

StringBuffer.reverse();

Name: Anonymous 2008-01-14 5:10

public class MainClass {
  public static void main(String args[]) {
    StringBuffer sb1 = new StringBuffer("abcde");
    sb1.append("abcdefghij");
    StringBuffer sb2 = sb1.reverse();
    System.out.println(sb1);
    System.out.println(sb2);
  }
}


Why the fuck is jihgfedcbaedcba also being assigned to sb1?

Name: Anonymous 2008-01-14 12:26

>>11
Why is it that when I google (for ``python reverse range'') I get shit like
http://www.python.org/search/hypermail/python-1992/0107.html
http://mail.python.org/pipermail/python-list/2003-January/181339.html
http://simonwillison.net/2004/Jan/28/sequenceInReverse/
and when I come bitching about it on /prog/ there's someone who corrects me with something elegant?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List