title: How to fetch the first element in a collection in java
body: <p>My question is, How to fetch the first element in a collection in java</p>
  
  <p>Example :</p>
  
  <pre><code>LinkedHashSet h1 = new LinkedHashSet();   
  h1.add("Ani","Broadway NY",10001);
  </code></pre>
  
  <p>And I want to fetch "Ani"   only</p>
  
  <p>How can I do this?</p>