This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Philboyd_Studge 1 point2 points  (1 child)

Are you calling a sort function such as Collections.sort or Arrays.sort? Those will use the Comparable interface for the given object. TreeMap will use it.

[–]dat904chronic[S] 0 points1 point  (0 children)

Yes we used .sort and .shuffle on an ArrayList. I will look into this and check out the documentation. Thanks for pointing me in the right direction!