Josh Dobbs wrote:
> Here's what my code looks like...
>  
> *
> 
> private
> 
> * Collection __cars_;
> 
> Car _myCar_=
> 
> *new* Car(1,1,*false*,5, "blue");
> 
> Car _myCar2_= *new* Car(1,1,*false*,5, "red");
> 
> _cars.add(myCar);
> _cars.add(myCar2);

Collection is an interface, not a class.

There are about 20 or so concrete Collection classes (e.g., ArrayList)
that you can choose from.

http://java.sun.com/docs/books/tutorial/collections/index.html

http://mindprod.com/jgloss/collection.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html

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

Reply via email to