DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
java get distinct values from list
List
<
String
>
distinctElements
=
list
.
stream
(
)
.
distinct
(
)
.
collect
(
Collectors
.
toList
(
)
)
;
PREVIOUS
NEXT
Tagged:
#java
#distinct
#values
#list
ADD COMMENT
Topic
COMMENT
Name
7+4 =
Submit