title: Implementing Set using List
body: <p>How can i implement a my own List which does not allow duplicate elements some thing like Set using <code>ArrayList</code> or <code>LinkedList</code>?</p>
  
  <p>Lets assume </p>
  
  <pre class="lang-java prettyprint-override"><code> public class  MyList&lt;E&gt; extends AbstractList&lt;E&gt;{
  
  //add
  //addAll
  //remove
  //get
  //size
  
  }
  </code></pre>