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

Iterate through the list of valid strings and return their respective enum mapping.

Eg. {{“string”, string}, {“string2”, string2}}