Use an array.


Does that mean you can only work with Strings?

Are you using java version 1.7? It allows Strings in switch statements.