How to use Aggregate functions in Java Streams

Since the introduction of lambda expressions in Java 8, life has become easier for java developers as streams has done away with plenty of boilerplate code. Most of the operations can now be done on the java side for which we had to write complex queries, thanks to the Aggregate functions or Stream Operations. These aggregate functions process … Read more

Sorting data using Stream API in Java

Sorting Using Streams

Sorting refers to the mechanism of arranging/re-arranging something in a specific order. When it comes to java, we talk about placing the elements of an array or a list (Collection) in either Ascending or Descending order. There are multiple ways of achieving the desired order of elements in a collection, but here we will see … Read more