I have an ArrayList<Card> cards = new ArrayList<Card> which I need to convert into TreeSet<Card>. For this purpose I do:
new TreeSet<Card>(cards)
After all I have a size of the TreeSet equal to 1. The Card class implements Comparable interface. What I'm doing wrong or not doing?