Junior
What interface does the forEach() method return?
sobes.tech AI
Answer from AI
The forEach method (which exists for collections, streams, and other iterable structures) itself does not return anything (void). However, its signature accepts a functional interface Consumer.