Answers for "can you use return in a if method in 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 "can you use return in a if method in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language