title: Creating subset of a Set in Java
body: <p>I have a  <code>LinkedHashSet</code>, i.e an ordered set. I'm trying to find a function to just return a subset of the set, i.e the first 20 elements of the set. I know I can do it by creating a new set and then populating using an iteration of the first set but I was hoping for something more succinct.</p>
  
  <p>Also took a look at Google's Guava libraries, but couldn't see what I wanted.</p>