Bonjour,
J'aimerais savoir comment peux t-on trier un objets (ici tableau de type Object) sans utiliser compareTo et un comparable...
Dans ce tableau il peut y avoir des string, int, double, float.....
Ex :
public static void main(String arg[]) {
Video[] tab = {
new Video("Le jour le plus long", "Ken Annakin", 1962),
new Video("Un pont trop loin", "Richard Attenborough", 1977),
new Video("Platoon", "Oliver Stone", 1986),
new Video("Full metal jacket", "Stanley Kubrik", 1987),
new Video("La ligne rouge", "Terrence Malick", 1998),
new Video("La ligne rouge", "David Malick", 1998),
new Video("La ligne rouge", "David Malick", 1995),
new Video("The patriot", "Roland Emmerich", 2000),
};
Merci d'avance