Question d’entretien chez Cognizant

How to re-write sort method in Java?

Réponse à la question d'entretien

Utilisateur anonyme

1 mars 2019

Implement the Comparator interface and rewrite the compare method inside the object.