title: Mod division of two integers
body: <p>I keep getting the error "The operator % is undefined for the argument type(s) Integer, Integer" I am not quite sure why this is happening. I thought that since modular division cannot return decimals that having integer values would be alright. </p>
  
  <p>This is happening within a method in a program I am creating. 
  The code is as follows:</p>
  
  <pre><code>    public void addToTable(Integer key, String value)
  {
      Entry&lt;Integer, String&gt; node = new Entry&lt;Integer, String&gt;(key, value);
      if(table[key % tableSize] == null)
          table[key % tableSize] = node;
  }
  </code></pre>
  
  <p>The method is unfinished but the error occurs at </p>
  
  <pre><code>    if(table[key % tableSize] == null)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    table[key % tableSize] = node;
  </code></pre>
  
  <p>any help or suggestions would be appreciated. </p>