Why Random::nextInt not allowed in java as method reference?

后端 未结 0 1188
无人共我
无人共我 2021-01-29 08:05

So I was reading generics and functional interfaces. There were two ways shown - Using Lambdas, Using method references. There were below examples used:

Predicate         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题