Java Advance

Using a switch statement