DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+2 =
Submit