File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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
Author

how i can create a Collection or a Map?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
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

Joined: Jun 19, 2001
Posts: 547
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

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

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


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

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:
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how i can create a Collection or a Map?
 
Similar Threads
How to read from all files in a directory & plot the contents by processing contents?
To extend or not to extend AbstractCollection
Caused by: java.lang.IllegalStateException: No modifications are allowed to a locked ParameterMap
elegant way to reverse key/value in Map
Creating a copy of an object