Java 8 Comparator’s comparingInt() method

preview_player
Показать описание
In this video tutorial I will explain how to work with Java 8
Comparator’s comparingInt() method using a demo project
Below is the GitHub link to download source code:
Рекомендации по теме
Комментарии
Автор

Thank u i was searching this video for long time finally I got it

RiteshSingh-gqhh
Автор

Nice explanation, but one doubt :

I have tried to get the sorting of Employee name by using countingInt method, I was getting error in :
Comparator<Employee> comp =
Collections.sort(emp, comp);
where emp is reference of the list in which elements are added.

Please help me out.

komalsingla
join shbcf.ru