0
Eliminate the duplicates and print the data using collections in java language.
array list ----> xxx yyy xxx yyy zzz, final output should be only xxx yyy zzz .
15 Answers
+ 5
which language?
+ 4
âșyeah, in the tags bit. Include java as a tag
+ 4
found it here lol https://cheeze.club/fqkc
// list is some List of Strings
Set<String> s = new LinkedHashSet<>(list);
+ 4
? it could be. Have you got any code?
+ 4
Do you know how to create the first part of the problem?
An array/collection which contains duplicates?
+ 3
please add this info to future questions, it helps people who are looking for questions to answer
+ 3
... seems pretty exact to me
+ 2
ok I got u
+ 1
java
+ 1
sure
+ 1
what happened Mr.jay is it completed
+ 1
it's an assignment
0
how to add I mean what to add
0
I need exact result as per my requirements