Output
In the above program notice the statement numbers.replaceAll((key, oldValue) -> oldValue + 2);. This method accesses all the entries of the map. It then replaces all the values with the new values provided by the lambda expression. There isn’t any description about lambda expression in this book, for the scope is beyond the aims of this text.