Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get first not null element

Stream.of(T...).filter(Objects::nonNull).findFirst().orElse(null)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #null #element
ADD COMMENT
Topic
Name
1+2 =