Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if duplicate element in java

for (String name : names) {
     if (set.add(name) == false) {
        // your duplicate element
     }
}
Source by javarevisited.blogspot.com #
 
PREVIOUS NEXT
Tagged: #check #duplicate #element #java
ADD COMMENT
Topic
Name
4+2 =