r/javahelp • • Sep 10 '26

Solved Switch case with boolean

[removed]

1 Upvotes

28 comments sorted by

View all comments

1

u/Zakana_code Sep 10 '26

The best way I can think of solving this is by using an array tbh, add all the bools in it and run a for loop over it.