Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
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
I don't think you have to have all the same class to use Comparable - just compatible classes that won't throw exceptions when asked to compare to each other.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
"JavaRanch, where the deer and the Certified play" - David O'Meara
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
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
The reason was that Vector is an older, effectively superseded class which pre-dates the Collections framework.Originally posted by Kelly KMoni:
I remember reading somewhere that using Vector is not a good idea, I am not sure of the reason though. [...]
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|