Say I have an enum which is just
public enum Blah { A, B, C, D }
and I would like to find the enum value of a string, for example
Apache's commons-lang library has a static function org.apache.commons.lang3.EnumUtils.getEnum which will map a String to your Enum type. Same answer essentially as Geoffreys but why roll your own when it's out there in the wild already.