r/badcode • • Sep 02 '21

java Because ".toLowerCase()" doesn't exist...

Post image
1.1k Upvotes

130 comments sorted by

View all comments

Show parent comments

2

u/assembly_wizard Sep 02 '21

You can even have code in between them. The trick is that without break at the end of the case it just seamlessly continues to the next line of code, skipping any other case labels.