r/badcode • • Nov 13 '20

java Getting Digits using Switch Catch

Post image
881 Upvotes

52 comments sorted by

View all comments

21

u/jess-sch Nov 13 '20

Eh, this isn't so bad. A good compiler will recognize this and optimize it awa--

Oh nvm this seems to be java

2

u/[deleted] Nov 14 '20

Don't you worry now, brother. The JVM is gonna lay it's hands on ya.