[brailleblaster] Re: jspawn: stuck on a stupid nit

  • From: Chris von See <chris@xxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Sat, 11 Dec 2010 10:13:30 -0800

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 stupid
example of what to import to get the list template.
Yes I searched the docs. I found List was in the Collections framework
under java.util.
So I have tried practically every import directive I can think of to import
it and they all fail.

Can someone please fire off a one-liner telling me what to import or declare
or 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 me
too much time.
Thanks.
--le




Other related posts: