Is there a way to write switch statement in java without having to always rewrite multiple case? As you can see in the picture. can i just remove all the cases for one instance and just use one case and still have the variables ex. case: 1,2,3,4:
Will that work in java using switch statement? java switch statement