class Test { void test(int y){ int x; switch (y){ case 3: x = 1; break; case 5: x = 2; break; default: return; } System.out.println(x); } }