O'Reilly logo

Oracle Certified Professional Java SE 8 Programmer Exam 1Z0-809: A Comprehensive OCPJP 8 Certification Guide by Tushar Sharma, Hari Kiran, S G Ganesh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 6

image

Java Stream API

Certification Objectives

Develop code to extract data from an object using peek() and map() methods including primitive versions of the map() method

Search for data by using search methods of the Stream classes including findFirst, findAny, anyMatch, allMatch, noneMatch

Develop code that uses the Optional class

Develop code that uses Stream data methods and calculation methods

Sort a collection using Stream API

Save results to a collection using the collect method and group/partition data using the Collectors class

Use flatMap() methods in the Stream API

In this chapter, we discuss the most important addition to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required