title: Check if enum exists in Java
body: <p>Is there anyway to check if an enum exists by comparing it to a given string? I can't seem to find any such function. I could just try to use the <code>valueOf</code> method and catch an exception but I'v been taught that catching runtime exceptions is not good practice. Anybody have any ideas?</p>