Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Collection" Watch "Collection" New topic
Author

Collection

Nelson Nadal
Ranch Hand

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

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 frankcarver.me ~ 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: 169
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: http://aspose.com/file-tools
 
subject: Collection
 
Similar Threads
wierd performance in tomcat/java: help consult
Garbage Collection to be turned off
WA #1.....word association
Read/Write file everytime ?
Request VS Application Context