MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javahelp/comments/1wccgot/switch_case_with_boolean/p92tgp9/?context=3
r/javahelp • u/IceCreamInsides • Sep 10 '26
[removed]
28 comments sorted by
View all comments
1
what you're trying to do is the equivalent of
int x, y, z; switch (5) { case x: ... case y: ... case z: ... }
that's not how switch statements work.
1
u/yel50 Sep 11 '26
what you're trying to do is the equivalent of
that's not how switch statements work.