Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

return boolean value from stream

boolean nameExists = yourList.stream().anyMatch(m -> m.getName.equalsIgnoreCase("ravichandrathangalapally"));
 
PREVIOUS NEXT
Tagged: #return #boolean #stream
ADD COMMENT
Topic
Name
7+1 =