Blah.valueOf("A") will give you
Note that the name must be an exact match, including case:
Blah.valueOf("A ") both throw an
The static methods
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.