switch (orderType) { case 1: statement 1; break; case 2: statement 2; break; case 3: **call case 1;** **Call case 2;** break; default: break;` }
我们可以用Java做到吗?
void foo(int param1,String param2,...) { switch (param1) { case 0: foo(1,"some string"); break; case 1: //do something break; default: break; } }