Java 7 allows a switch on a String, so you don't need to use a CharArray.

A few points:

Names of classes by convention start with a capital letter.
Try to use descriptive variables. 'wr',...