3 ms·
I don't think switch expressions are pretty standard at all. Switch statements are standard, and Java has had them for a long time. Switch expressions are diff
by Thorentis 7y ago
I don't think switch expressions are pretty standard at all.
Switch statements are standard, and Java has had them for a long time. Switch expressions are different in that the switch "statement" now returns a value that can be assigned to a variable.