Lucian Botezatul wrote:Tried with hashSet and TreeMap but nothing worked
... hope
Lucian Botezatul wrote:
Then use a TreeMap:
![]()
Then took put the Numbers n1 ... n10 and names in a TreeMap:
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Lucian Botezatul wrote:if i get it right, when i have a Map i can use two different keys with the same value?
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|