title: Printing a TreeMap value which is an Object
body: <p>I am trying to print out a treemap with integer keys and Employee values. Each Employee object should be contains a (string)last name, a (string)first name, a (Integer)ID and a (string)performance scale. I already finished class Employee. However, my output comes out with values as locations.</p>
  
  <p>Map(Integer, Employee) e = new TreeMap(Integer, Employee) ();</p>
  
  <pre><code>    Employee e1 = new Employee("Puppy", "Nguyen", new Integer(345), "4");
      e.put(e1.getID(), e1);
      Employee e2 = new Employee("Kitty", "Thompsons", new Integer(123), "2");
      e.put(e2.getID(), e2);
      Employee e3 = new Employee("Cubby", "Gonzalez", new Integer(234), "5");
      e.put(e3.getID(), e3);
  
      System.out.println("Original Employee-typed TreeMap: ");
  
      for(Map.Entry&lt;Integer, Employee&gt; entry : e.entrySet())
      {
          System.out.println("ID: " + entry.getKey());
          System.out.println("Employee: " + entry.getValue());
      }
  </code></pre>
  
  <p>My output: </p>
  
  <p>Original Employee-typed TreeMap: </p>
  
  <p>ID: 123</p>
  
  <p>Employee: Employee@fef18a5d</p>
  
  <p>ID: 234</p>
  
  <p>Employee: Employee@ec71836a</p>
  
  <p>ID: 345</p>
  
  <p>Employee: Employee@89120ee</p>