package p; //initialize in method class A{ void f(){ switch (1) { case 1: int i = 0; break; } } }