title: Switch on Enum in Java
body: <p>Why can't you switch on an enum in Java? It seems simple enough to do and would make for some convenient code. Also this question could apply to <code>String</code>'s. You can switch on a <code>char</code>, but not a <code>String</code> ...?</p>