Try: import java.util.List;This statement should go right after your "package" directive, or right at the beginning of your file if you don't have a "package" directive.
Then you can do things like this: List<String> stringList = new ArrayList<String>(); (assuming you also import java.util.ArrayList). Cheers Chris On Dec 11, 2010, at 10:07 AM, qubit wrote:
I am prevented from compiling my code by a simple matter of finding a stupidexample of what to import to get the list template.Yes I searched the docs. I found List was in the Collections frameworkunder java.util.So I have tried practically every import directive I can think of to importit and they all fail.Can someone please fire off a one-liner telling me what to import or declareor whatever so I can use a simple List<String>??? I'm sure this isn't the last time I will use this class.I was planning on sending this this morning but this bug has been wasting metoo much time. Thanks. --le