Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to set boolean to false if null java

Boolean.TRUE.equals(/*your boolean value here*/);

//if true, true equals true so returns true
//if false, false does not equal true to returns false
//if null, null does not equal true so returns false
 
PREVIOUS NEXT
Tagged: #set #boolean #false #null #java
ADD COMMENT
Topic
Name
9+1 =