paul78 wrote: » Welcome to TE. I noticed your unanswered post so thought I would offer a reply. Perhaps if you provided some context including your own thoughts to the problem, there would be more replies. Most forum members will not simply provide an answer to what appears to be a simple homework problem. Myself included. Is there some aspect of the case statement that you don't understand? Did you already attempt to byte-compile the code and run it through the java intepreter?
JDMurray wrote: » Once you understand how the switch statement in Java SE 7 works it's a trivial question to answer. I hope this isn't an exhibit from a practice exam or ****. ("Moves finger towards big red button...")
paul78 wrote: » Good thing JD didnt have to use his big red button. I think it also launches the space shuttle and sets off all the car alarms within a 2 mile radius.