JEP Draft: Switch Expressions for the Java Language

Add switch expressions to the Java Programming Language, and improve the handling of null values in switch statements. These will simplify everyday coding, as well as prepare the way for the use of pattern matching in switch. Read more

Similar