Pregunta de entrevista de 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

Respuesta de la entrevista

Anónimo

18 sept 2021

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