From the course: Functional Programming with Java

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Combine list functions

Combine list functions - Java Tutorial

From the course: Functional Programming with Java

Start my 1-month free trial

Combine list functions

- So you've seen so far in previous videos, several of Java's numerous built in functions for working with lists and streams. Now these functions are certainly very powerful on their own and each contributes a great deal towards simplifying and increasing readability in our code. The really exciting part, however, is that these functions can all be combined to give us an incredible amount of functionality. In this video, we're going to walk through an example of how we can do this. So the example we're going to look at is this, let's say we have a list of employee objects and the employee class is defined inside this class here. So let's say we have a list of employee objects, which all have name, age, salary, and job title attributes. Now in the real world, there's all sorts of interesting information that can be deduced from data sets like this, and we're going to examine one way that we can discover such information using the stream functions that we've learned. So what we're going…

Contents