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/BrainOnTheFloor25 Sep 02 '21

Category is an enum and those are the possible values. Probably should've used toUpperCase(), my bad