title: Overriding in Java
body: <p>Is there a way to override a Java method that the only thing that changes is an ArrayList?   </p>
  
  <p>For example:   </p>
  
  <pre><code>public void quickSortMethod(ArrayList&lt;Integer&gt; comparison, int start, int end)   
  {}   
  
  public void quickSortMethod(ArrayList&lt;Double&gt; comparison, int start, int end)   
  {}   
  </code></pre>
  
  <p>This currently gives me the following error:    </p>
  
  <pre><code>Method quickSortMethod(ArrayList&lt;Integer&gt;, int, int) has the same erasure quickSortMethod(ArrayList&lt;E&gt;, int, int) as another method in type QuickSort   
  </code></pre>
  
  <p>Btw I'm using other objects I created as parameters in the ArrayLists</p>
  
  <pre><code>ArrayList&lt;MyObject&gt;...    
  </code></pre>