How to maintain a Unique List in Java?
<p>How to create a Unique List in Java.  </p>

<p>Right now I am using <code>HashMap&lt;String, Integer&gt;</code> to do this as the key is overwritten and hence at the end we can get <code>HashMap.getKeySet()</code> which would be unique. But I am sure there should be a better way to do this as the value part is wasted here.</p>
