I think there is a better solution.
A switch statement will do a compare with every constant. So you're looking at a whole lot of compares.
What you need is a data structure that will find your information by just doing a little math. It would be really nice if
Java would abstract that math away from you.