title: How to access a specific element with in a TreeMap?
body: <p>I have used a Tree map to add data into my system.
  I would like the user to be able to change certain value within the objects that have been added to the system.
  In order for the user to choose the value that he/she wants to change I have printed it out to the screen using this.</p>
  
  <pre><code>for(Employee employee : employeeMap.values())
  {
      System.out.println("Employe no :" +x+": "+employee);
      x++;
  }
  </code></pre>
  
  <p>Then in order to access the objects element in the tree map that the user has chosen I have tried using this: </p>
  
  <pre><code> System.out.println("this employee @@@@@##### is no: "+employeeMap.get(x));
  </code></pre>
  
  <p>Which is what I have successfully used with arraylists, But it does not seem to work it seems that all the value are null when using this approach.</p>
  
  <p>Could some one please show me a better way of doing it.</p>