title: Incompatible types: int[] cannot be converted to Comparable<Object>[]
body: <p>I am new to generics and casting issues. I try to sort any type array that is comparable. The error is as the title; and the code is as below: and error is same for integer. What is the problem and why?</p>
  
  <pre><code>class Sort{
    public static void selectionSort(Comparable&lt;Object&gt;[] input)
    {/* selection Sort Alg*/}
    public static void main((String[] args){
      int[] intArray = {2,3,5,1};
      Sort.selectionSort(intArray);
    }
  }
  </code></pre>