Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

find repeated elements in array java

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