I'm wondering if it's possible to sort a LinkedHashSet. I've tried the statement
Collections.sort((List<Comparable> paragraph);
However, that just throws an error that it cannot be casted into a List. Is there a way of doing this, or should I use another Data Structure?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…