Convert a String to an enum in Java - Stack Overflow
Yes, Blah.valueOf("A") will give you Blah.A. The static methods valueOf() and values() are created at compile time and do not appear in source code. They do appear in Javadoc, though; for example, Dialog.ModalityType shows both methods....