title: HashMap "Unique" Keys
body: <p>Firstly, I'd like to say I am still learning java, so excuse any unconventional code and/or questions.</p>
  
  <p>I'm trying to allow the HashMap to set 'unique' keys while only using one put method.</p>
  
  <p>This is what I currently have:</p>
  
  <pre><code>static int killcount = 0; 
  
  static Map&lt;Integer, Integer&gt; enumMap = new HashMap&lt;Integer, Integer&gt;();
  
  public static void incrementKillcount() {
      enumMap.put(getId(), killcount++);  
  }
  </code></pre>
  
  <p>(Again, excuse any unconventional java code, I'm still learning).</p>
  
  <p>In this instance, if I'm not mistaken, the key is interchangeable (or at least from my experimenting). So the key doesn't really matter all that much. But while only having one put method, every key shares the same value. I'd like to make the value have some sort of 'unique' value.</p>
  
  <p>For example, if I wanted this to count by increasing the killcount by 1 (killcount++;) until it reached 10, and then moving to a different key to count to 10 again, it would start counting from 10 instead of 1.</p>
  
  <p>Thanks in advance, and again, excuse me for my terrible java skills! :)</p>