• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how i can create a Collection or a Map?

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it sounds like you should also take the tutorial:

http://java.sun.com/docs/books/tutorial/collections/index.html
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You didn't tell me he was so big. Unlike this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic