Collection tri ordre alphabetique

Psychocolat -  
 Psychocolat -
Bonjour,
J'ai beau cherché sur google je ne trouve pas comment trier une collection, je m'explique:

Il y a une collection reference contenant des JoueurReference:

public class JoueurReference {
public String anneeLicence;
public String numeroLicence;
public char sexe;
public String categorieAge;
public char categorieMoyenne;
public String nomEtPrenom;
}

Je voudrais trier la collection reference en fontion des attributs nomEtPrenom.

J'ai beau cherché avec des TreeSet et BeanComparator, je n'y arrive pas

1 réponse

Psychocolat
 
Vraiment personne ? :/
0