You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -28,6 +30,8 @@ To run each example use: `java --enable-preview --source 23 <FileName.java>`
28
30
* if the switch's selector expression is a float then any case constants must be a floating-point literals
29
31
* floating-point literal in case labels is defined in terms of [representation equivalence](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Double.html#repEquivalence)
30
32
* a label `case 1.0f` is considered the same as `case 0.99999999f`, will throw a duplicate label error
0 commit comments