Exercises
-
17.4 Fill in the blanks in each of the following statements:
Stream are formed from stream sources, intermediate operations and terminal operations.
The following code uses the technique of iteration:
1 int sum = 0; 2 3 for (int counter = 0; counter < values.length; counter++) { 4 sum += values[counter]; 5 }
Functional programming capabilities focus on —not modifying the data source being processed or any other program state.
An implementation of the functional interface takes a
T
argument and returnsvoid
, and performs a task with itsT
argument, such as outputting the object, invoking a method of the object, etc.An implementation of the ...
Get Java How To Program, Late Objects, 11th 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.