How to sort by two fields in Java using Comparable interface

Publié le: 11 avril 2020
sur la chaîne: Miquel Boada Artigas
528
4

In this video I'm using two classes:

A Racer class, with four attributes. The important ones are the minutes and seconds. This attributes are used to store the time spent for the race.

The Race class has an ArrayList that contains all the racers. The objective is to show how we can order this ArrayList by the minutes and the seconds spent.


Sur cette page du site, vous pouvez voir la vidéo en ligne How to sort by two fields in Java using Comparable interface durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Miquel Boada Artigas 11 avril 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 528 fois et il a aimé 4 téléspectateurs. Bon visionnage!