What happened?
There are possible typos in the Chaining Consumers with Default Methods section:
Consumer<String> longAndPrint = log.andThen(print);
I think this should be logAndPrint
In this example, printAndLog is a consumer that will first pass the message to the log consumer and then pass it to the print consumer.
I think this should be logAndPrint
I'm not sure if any of my suggestions are correct.
What OS are you seeing the problem on?
Linux
What browsers are you seeing the problem on?
Chrome
Contact Details (optional)
No response
What happened?
There are possible typos in the Chaining Consumers with Default Methods section:
I think this should be
logAndPrintI think this should be
logAndPrintI'm not sure if any of my suggestions are correct.
What OS are you seeing the problem on?
Linux
What browsers are you seeing the problem on?
Chrome
Contact Details (optional)
No response