- 1
i dont know why its not working, it suggest that i add return 0; to the code, but i dont want to
public class doingException { public char grader(int a ) { if(a == 1){ throw new IllegalAccessException("wrong"); } } }
2 ответов
+ 3
If you don't want to, then make return type void, instead of char type.
+ 1
Please link your ***complete*** code so we can check on it.