Exercises

  1. 17.4 Fill in the blanks in each of the following statements:

    1. Stream                       are formed from stream sources, intermediate operations and terminal operations.

    2. 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   }
      
      
    3. Functional programming capabilities focus on                      —not modifying the data source being processed or any other program state.

    4. An implementation of the functional interface                       takes a T argument and returns void, and performs a task with its T argument, such as outputting the object, invoking a method of the object, etc.

    5. 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.