I\'m currently working on an assignement which requires me to use a Treeset to sort pairs of value. I\'m asked to use SimpleEntry. I\'m storing them on a Treeset :