Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if all values are same in list java

boolean allEqual = list.stream().distinct().limit(2).count() <= 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #values #list #java
ADD COMMENT
Topic
Name
8+6 =