Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

method to check parameters in java

//Method can also be void
//String parameter can be removed
public boolean checkParam(boolean condition, String msg){
	if(!condition) throw new IllegalArgumentException(msg);
	return true;
}
 
PREVIOUS NEXT
Tagged: #method #check #parameters #java
ADD COMMENT
Topic
Name
9+8 =