February 2014
Beginner
1248 pages
62h 25m
English
• IntStream static method of (p. 738) receives an int array as an argument and returns an IntStream for processing the array’s values.
• IntStream method forEach (a terminal operation; p. 738) receives as its argument an object that implements the IntConsumer functional interface (package java.util.function). This interface’s accept method receives one int value and performs a task with it.
• The Java compiler can infer the types of a lambda’s parameters and the type returned by a lambda from the context in which the lambda is used. This is determined by the lambda’s target type (p. 738)—the functional interface type that is expected where the ...
Read now
Unlock full access