this code doese not compile becauese if the method containing the switch statement is declared with a non void return type and if no return statement appears after the switch statement,the each case of the switch must have a return statement or a throw statement.  Here,there is no return statement after the switch statement ,so all the cases
should have had a return or throw statement. the default case has no return
statement here. so the compiler will cmplain because assertions might not always be enabled.here, instead of assert false, you can use throw assertionerror which will be exceuted even if assertions are disabled.题目等下贴,现在手头还有点事情 谢谢了。