This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi, I'm building an application where I need a collection to hold some objects of the same class. it can grows or decrease in size implementing insertions and deletions respectibly. duplicates are not allow. I think I could use a set but I not sure how to use it, can you show me an example, or tellme which collection is it much better for the application. As well I heard that the vector class was deprecated in j2se 1.4, is that true? many thanks,
I made a little crib sheet to help me remember which collection to use. See if the qualities listed match up with what you need to do and help you pick one. There is a tiny example of creating and filling a HashMap there, too. Hope that helps!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi