I came across this when I try to practice the example in SCJP 5.0 Study Guide by Kathy and I added some lines to is as well.
ArrayList <String> test=new ArrayList<String>();
and this is the output I get
[hi, Sting, EEE, ABC]
[ABC, EEE, Sting, hi]
Do any of you guys no the answer for this?