+ 2
-> operator
what is this -> operator to be call in java , what is the different nomenclature for the same ?
2 ответов
+ 1
That's a New operator introduced in java 8 used in lamda expressions...
Hope this clears more:
https://www.delftstack.com/howto/java/java-arrow-operator/
https://stackoverflow.com/questions/15146052/what-does-the-arrow-operator-do-in-java
edit:
yes. as @ zemiak said, like this but also it is also called lamda statement I think..
https://www.sololearn.com/Discuss/2969139/?ref=app
+ 1
also in switch statement, where it is used different way