News

Sorting a Java Map with TreeMap; Sorting a Java Set with TreeSet; How to avoid ClassCastExceptions when sorting; ... If there were more elements we would have to replicate the logic for each object.