Answers for "do you need return in an if - else if java"

1

java return if

public void test(){
	if(something){
    	return;//this ends the method
    }
  
  	//do whatever you want
}
Posted by: Guest on April-06-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language