moioi Yang

Greenhorn
+ Follow
since Jul 22, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by moioi Yang

Thanks for your answers. I didn't realize the method return values could be discarded or ignored in situations like these.

All the examples in the book happen to have the method return types match the interface method return type. So I assumed it's a rule.


V put (K key, V value)

The put () method has a return type V, but BiConsumer has return type void. I knew it compiles, but why?