I need an example on how to use a comparable class on a HashSet
to get an ascending order. Let’s say I have a HashSet
like this one:
HashSet<String> hs = new HashSet<String>();
How can I get hs
to be in ascending order?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…