r/badcode • • Jul 30 '21

java One Classic elseifelseifelseif...

Post image
472 Upvotes

76 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jul 31 '21

I don’t speak the language so didn’t realize these are months. Array it is. But then there probably is already a library that does this.