• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how i can create a Collection or a Map?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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 ?

Thanks
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is what you are looking for:
http://java.sun.com/j2se/1.5.0/docs/api/

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.


pascal
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it sounds like you should also take the tutorial:

http://java.sun.com/docs/books/tutorial/collections/index.html
 
lena lena
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
http://javafaq.nu/java-article991.html

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

I hope it helps you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic