With JEP 361, the switch syntax of #Java became more powerful &amp; easier to use. It happened in a couple of ways; a cleaner syntax &amp; the ability to use switch as an expression, not just a statement.
#Java