Actually Scala uses =>, so Java went the opposite way. Kotlin also uses ->.
Doesn't matter much in the long run, you'll get used to whichever your language favors after just a few days or writing code in it.
Doesn't matter much in the long run, you'll get used to whichever your language favors after just a few days or writing code in it.
Java probably followed Scala's notation, which is probably derived from mathematics where ↦ is an application (a function) and ⇒ is a simple logical implication.