I recently add another menu item to an android java app and was suprised that Eclipse said that variable from the previous case:break were not local (So I\'ve just added a s
You're right that at most one will execute, but a case does not create a new scope. You can manually create a block with its own scope.
case foo: { int var = ... } break; case bar: { int var = ... } break;