my dog learned polymorphism
The moose likes Beginning Java and the fly likes Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Collection" Watch "Collection" New topic


Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
What is the OTHER real world application that uses Collection implementations?
The only thing I know is for database application, is there any?
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Umm, I think you might be misunderstanding what Collections are about. I can't think of any Java project I've ever written, however small, which hasn't used at least one of the collections classes somewhere. Hardly any of these projects used a database.
Collections are a vital part of keeping track of your objects and information while a program is running, and they form the backbone of many of the most important "design patterns".
Here's a challenge for you, to help get you thinking like a Java "pro". Think of a small java program, pretty much anything is OK, briefly describe here what it should do, and we will chip in about ways you could use Collections classes to help write it.
Deal ?

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Expandable arrays (Vector and ArrayList in Java) and associative arrays (Hashtable and HashMap in Java) are pretty fundamental data structures. Once I used a language that had them built-in (Perl), I never wanted to do without them again.
[ August 20, 2002: Message edited by: Ron Newman ]

Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
Thanks Frank...
OK I will do, but I'm wondring, do I need to show all the codes here?
Thanks too, Ron.
I agree. Here's the link:
subject: Collection
jQuery in Action, 3rd edition