Collections not compiling

was trying to run a test from the JUnit faq, it calls for creating a collection, and it wouldn't compile, so I just did a little test file to see if I could play with it a bit, it still wouldn't compile.

here's my code:

publicclass CollectionTest{

ArrayList testCollection =new ArrayList();

}

it gives me this:

C:\java\misc_test>javac CollectionTest.java

CollectionTest.java:5: cannot find symbol

symbol :class ArrayList

location:class CollectionTest

ArrayList testCollection =new ArrayList();

^

CollectionTest.java:5: cannot find symbol

symbol :class ArrayList

location:class CollectionTest

ArrayList testCollection =new ArrayList();

^

2 errors

thanks,

bp

[1142 byte] By [badpersona] at [2007-11-27 6:15:39]
# 1
you need to import it first:import java.util.ArrayList;
Navy_Codera at 2007-7-12 17:26:31 > top of Java-index,Java Essentials,New To Java...
# 2
d'oh....they didn't have that import statement in the example, thanks!bp
badpersona at 2007-7-12 17:26:31 > top of Java-index,Java Essentials,New To Java...