return statements in if statement java code example
Example: java return if
public void test(){
if(something){
return;//this ends the method
}
//do whatever you want
}
public void test(){
if(something){
return;//this ends the method
}
//do whatever you want
}