Alternate for Case Code
Posted on 2003-11-13
Is it possible to replace the code between the braces with different code that is not a case statement. I mean engineer a different way to do the same thing. Possibly with a series of if statements or something such as "if B or b then x, if V or v then y, If Q or q then z." If so what would the syntax be? What code could replace this and plug into the same spot.
done = true;
System.out.println("That is not a valid choice.");