This would be far better done with a table lookup rather than a long code string of tests. Either use a simple indexed array or, if you need your string lookup, use a HashMap.
This would be far better done with a table lookup rather than a long code string of tests. Either use a simple indexed array or, if you need your string lookup, use a HashMap.