If I write a simple program like
public class testingthearraylist {
public static void main (String[] args) {
ArrayList testlist=new ArrayList ();
String a=new String ("a");
testlist.add(a);
System.out.println("Size of testlist is "+testlist.size());
}
}
javac (which I'm running from DOS) tells me the class 'ArrayList' is not recognised.
I always thought the library ships with Java. Is there a mistake in my program? Do I have to download the API?
public class testingthearraylist {
public static void main (String[] args) {
ArrayList testlist=new ArrayList ();
String a=new String ("a");
testlist.add(a);
System.out.println("Size of testlist is "+testlist.size());
}
}
javac (which I'm running from DOS) tells me the class 'ArrayList' is not recognised.
I always thought the library ships with Java. Is there a mistake in my program? Do I have to download the API?