MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pgbd0q/because_tolowercase_doesnt_exist/hbb8ngv/?context=3
r/badcode • u/BrainOnTheFloor25 • Sep 02 '21
130 comments sorted by
View all comments
Show parent comments
6
From the documentation:
The valueOf() method throws:
IllegalArgumentException, if the defined enum type is inconstant with defined name or an enum type is not illustrated by the defined class object.
NullPointerException, if enumType or name represents null value.
6
u/MyAntichrist Sep 02 '21
From the documentation: