Is it possible to somehow ignore this error? I find it much easier to just put return in front of the code I don\'t want to run than to comment it (when the com
return
you have to fix that unreachable code.
public void display(){ return; //move the return statement to appropriate place int i; }
compiler will not compile your source code. you have to take care of your source code that every line is reachable to compiler.