all the items to LinkedHashSet & then cleared ArrayList and then added back. Is there a better way to do this?
And is there any drawback for this approach?
List via stream to set and then back to list again? I think android is supporting streams
Set doesn't respect order
then create your own collector and collect it to another list
Can u provide a code snippet to illustrate this?
Обсуждают сегодня