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
Get the source code of this tutorial from my website at https://www.javaguides.net/2020/04/java-sort-list-arraylist-in-ascending-and-descending-order-using-stream-api.html.
#java8 #javaguides #stream