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 11:16

>>8
I thought it was smart enough to walk all the way down to sb (or whichever the first actual object is) if the return type is void. Isn't it?

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