Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if optional is empty java

String o = getOptional().orElse(null);
if (o == null) {
    return;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #optional #empty #java
ADD COMMENT
Topic
Name
4+9 =