public class X { int f(int a) { switch (a) { case 0: return 1; default: return 2; } } }