thanks for quick reply
my problem is not about assert
i thinks i am not able to get "return" statement with switch
class Test {
String f(int i){
switch(i){
case 0:return "A";
}
}
public static void main(String[] s){
Test t = new Test();
for(int i=0;i<2;i++){
System.out.println(t.f(i));
}
}
}
this too is showing missing return statement