17.6.1 Creating and Displaying a List<Employee>
Class ProcessingEmployees
(Figs. 17.10–17.16) is split into several figures so we can show you the lambda and streams operations with their corresponding outputs. Figure 17.10 creates an array of Employee
s (lines 17–24) and gets its List
view (line 27).
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.