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 - Java Tutorial
From the course: Functional Programming with Java
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Map in Java8m 4s
-
(Locked)
Filter in Java10m 30s
-
(Locked)
Reduce in Java7m 46s
-
(Locked)
Collect in Java8m 8s
-
(Locked)
Challenge: Stream exercises1m 24s
-
(Locked)
Solution: Stream exercises3m 59s
-
(Locked)
Combine list functions4m 47s
-
(Locked)
Parallel streams5m 26s
-
(Locked)
Challenge: Average salary calculator2m 57s
-
(Locked)
Solution: Average salary calculator4m 10s
-
(Locked)
-