Change switch to Integer.parseInt()

Switch the switch to a parseInt call, same effect, much more
elegant
looking.