Duplicate Element in Set

In Java, tell me a way that you can add a single instance of an object twice to the same set?

Answer

Answers are hidden from search engines.
language=java