title: How to fix size of LinkedHashSet?
body: <p>I need a LinkedHashSet with a fixed size n so that when we insert the n+1th element , the first element is automatically removed and new element is inserted at the end.</p>
  
  <pre><code>LinkedHashSet &lt;Integer&gt; = new LinkedHashSet &lt;Integer&gt; () ;
  </code></pre>
  
  <p>How should I implement the constructor to fix the size ?</p>