New course! Every coder should learn Generative AI!
Try a free lesson- 1
#Java
Create a collection. Fill in the information. Remove duplicates and sort in reverse public static <T> Collection<T> removeDuplicates(Collection<T> collection) { return new HashSet<>(collection); }
2 Answers
0
Help me please
0
Калысбек Абдилазиз уулу
Take reference from here to remove duplicate values.
https://code.sololearn.com/cjLd3h1RpTL8/?ref=app