Originally posted by Vlada Den: I get a compilation error in this line:
private List categoryList = new ArrayList();
I'm going to guess (please don't make us guess!) that the errors you're getting areIf so, this is telling you that your Expert class doesn't define List and ArrayList.
If a class needs to use another class, it must import it. Import statements tell the compiler where to find the definition for another class that you want to use. They go at the top of the file after the package statement (if any) and before the class or interface definitions. They look like this:Your job is to find where the List and ArrayList classes are located. If you don't know, use the JavaDocs to find out. [ January 30, 2005: Message edited by: David Harkness ]
Joined: Dec 19, 2004
Now I see... Thank you so much, David. And I'll try to ask more to-the-point questions next time.