News
Allowing developers to handle an exception from the selector in switch with a case in the switch block would make switch more usable for pattern matching, the proposal says.
Java 12 introduced switch expressions. Similar to Kotlin’s when, Java’s switch expressions do not require break statements, and they can be used as statements or expressions.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results