This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how i can create a Collection or a Map? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how i can create a Collection or a Map?" Watch "how i can create a Collection or a Map?" New topic

how i can create a Collection or a Map?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Thank you for reading my psot
Collection and Map are an interfaces meawhile i need to have a collection or map of my objects (i create those object myself)
now i want to add some of them to a Collection to use some 3rd party library.
how i can create a Collection ?

pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
this is what you are looking for:

the java API....

search for the Collection/Map interfaces (located in the java.util package) and then checkout the "All Known Implementing Classes" section...

there you can find implementations (abstract and concrete) of the interfaces.

Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
it sounds like you should also take the tutorial:

There is no emoticon for what I am feeling!
lena lena

Joined: May 11, 2006
Posts: 1
I just found great collections complete overview table.

It is most full overview I found on the net: it is very handy, you can chose exactly what you want and it is illustrated by examples:

This table helped me again to solve old classical Java question hashtable vs hashmap :-)

I hope it helps you
I agree. Here's the link:
subject: how i can create a Collection or a Map?
jQuery in Action, 3rd edition