title: Learning HashMap
body: <p>I'm just learning myself how to use hashMaps, can someone check this piece of code I have written and tell me if it's correct? The idea is to have a list of staff working in a company, I want to add and remove staff from a hashMap.</p>
  
  <pre><code>public class Staff
  {
      private HashMap&lt;String, String&gt;id;
  
      public Staff(String name, String number)
      {
          id = new HashMap&lt;&gt;(name,number);
      }
  
      public addStaff()
      {
         id.add("Joe","1234A2);   
      }
  
      public removeStaff()
      {
         id.remove("Joe","1234A2);
      }
  }
  </code></pre>