title: Passing an int to an Object argument
body: <p>A couple of my classmates are having a problem that I'm not able to reproduce, so I'm hoping someone can shed some light on their issue.</p>
  
  <p>Our assignment required us to make a method using this signature:</p>
  
  <pre><code>public void addElement(int index, Object element) {...}
  </code></pre>
  
  <p>This method is called by a provided (pre-written) driver class with this line:</p>
  
  <pre><code>list1.addElement(addIndex, int1);
  </code></pre>
  
  <p>As you may have guessed, <code>int1</code> is an int.  This works fine for me, but some people are receiving an error message:</p>
  
  <pre><code>"The method addElement(int, Object) in the type LinkedList is not applicable for the  arguments (int, int) "
  on list1.addElement(addIndex,int1);
  </code></pre>
  
  <p>I've tried using different IDEs and different versions of JDK, but still can't reproduce the issue.</p>
  
  <p>Thanks for the help!</p>