Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collection

 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frank...
OK I will do, but I'm wondring, do I need to show all the codes here?
Thanks too, Ron.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic