- 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"); } } }

26th Dec 2022, 2:40 PM
Lenoname
2 ответов
+ 3
If you don't want to, then make return type void, instead of char type.
26th Dec 2022, 3:55 PM
Jayakrishna 🇮🇳
+ 1
Please link your ***complete*** code so we can check on it.
26th Dec 2022, 2:47 PM
Lisa
Lisa - avatar