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.

Map in Java

Map in Java - Java Tutorial

From the course: Functional Programming with Java

Start my 1-month free trial

Map in Java

- [Instructor] One of the nice things about learning functional programming with Java is that many of the concepts we've learned about have a great deal of native support in the language itself. And one of the areas where this fact is especially true is in working with arrays and other similar structures, such as lists. Through its stream interface, which we'll discuss shortly, Java provides a host of built in functions and functionality that makes working with these constructs in a functional way, incredibly easy. Built-in functions such as map, filter, reduce and collect, make the formerly complicated task of transforming lists data almost trivial. Over the course of the next few videos we're going to examine Java's built-in support for this aspect of functional programming and how we can use it to our advantage. So the first of Java's built-in list functions that we're going to be talking about here is called map. Quite often, it happens that we have a list of data and we want to…

Contents