A Set does not have duplicate elements.
Can you explain what you are trying to do?
An ArrayList can have duplicate values.