Course contentsShow
Java
Lesson 583 of 2,87014. EnumerationsPro lesson

The valueOf(String) Method

Converting a string to an enum constant using valueOf, and handling IllegalArgumentException for invalid names.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.