Java 8 Stream - Sort List (ArrayList) in Ascending and Descending Order | Comparator Examples

preview_player
Показать описание
In this video tutorial, we will see how to sort List (ArrayList) in ascending and descending order using Java 8 Stream APIs.

We create below examples in this video tutorial:
- Sorting List of String objects in Ascending order
- Sorting List of String objects in Descending order
- Sorting List of Employee objects (By Salary) in Ascending order
- Sorting List of Employee objects (By Salary) in Descending order
- Sorting List of Employee objects (By Age) in Ascending order
- Sorting List of Employee objects (By Age) in Descending order
- Sorting List of Employee objects (By Name) in Ascending order
- Sorting List of Employee objects (By Name) in Descending order

#java8 #javaguides #stream
Рекомендации по теме
Комментарии
Автор

Thank you. Very simple video. and u saved my life. keep it up bro

pradeepwijayawickrama
Автор

Very nice explaination. Please don't keep background music with

anandreddy
Автор

Sir, Can u plz explain how o2.compareTo(o1) will work?

shraddhadethe