Created
November 5, 2013 10:13
-
-
Save booo/7316803 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.lang.StringBuffer; | |
public class Foo { | |
public static void main(String[] args) { | |
List<StringBuffer> list = new ArrayList<StringBuffer>(); | |
list.add(new StringBuffer("foo")); | |
System.out.println(list.get(0)); | |
list.get(0).append("bar"); | |
System.out.println(list.get(0)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment