List is a Java interface that cannot be instantiated. You need to
create an instance of a class that implements the list interface, for
example:

private List<Card> mCards = new LinkedList<Card>();

On Sep 20, 3:54 pm, totallyweb <[EMAIL PROTECTED]> wrote:
> I have a class called Card (a playing card, e.g. the ace of spades)
> and want to implement java.util.List<Card>, but when I write the code
> for its constructor:
>
> private List<Card> mCards = new List<Card>();
>
> eclipse Ganymede complains with the error: "cannot instatiate the type
> List<Card>".  I don't understand why!  The class Card works fine.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to