Question d’entretien chez Coforge

Two programs 1. Take any collection you want duplicate elements are not allowed into that list . 2. Sort algorithm based on employee age using java 8

Réponse à la question d'entretien

Utilisateur anonyme

18 sept. 2021

1. Set interface 2. list.stream(). sorted (comparator.comparing(Employee::getAge())).collect(collectors.toList());