News
To maintain compatibility with existing Java code, when switching over an enum type, a case constant can still use the simple name of a constant of the enum type being switched over.
Get a deep dive into using method references in your Java programs, including stream operations, event listeners, and constructors and factories.
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.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results