February 2014
Beginner
1248 pages
62h 25m
English
Lines 21–22 call the resulting Map’s forEach method to display the summary of the results. This method receives an object that implements the BiConsumer functional interface as an argument. Recall that for Maps, the first parameter represents the key and the second represents the corresponding value. The lambda in lines 21–22 uses parameter face as the key and frequency as the value, and displays the face and frequency.
Read now
Unlock full access