I am looking for a way in Java to allow a return statement to compile like so:
public void void1(){
return;
}
public void void2(){
return void1(); // compile error here
}
is there a way in Java to return a call on the same line if it's void? I end up having to do this of course:
public void void2(){
void1();
return;
}