title: Error: the method sort (Comparable []) in the type Selection is not applicable for the arguments (int[])
body: <p>that is the error I get when trying to write out the Selection sort. Could someone point out what I'm doing wrong. My code is below. Thanks!</p>
  
  <pre><code>    public class Selection
      {
          static void sort(Comparable[] a)
      {
      int N = a.length;
      for (int i = 0; i &lt; N; i++)
      {
      int min = i;
       for (int j = i+1; j &lt; N; j++)
       if (less(a[j], a[min]))
       min = j;
       exch(a, i, min);
       }
       }
       private static boolean less(Comparable v, Comparable w)
       { 
       return v.compareTo(w) &lt; 0;   
       }
      private static void exch(Comparable[] a, int i, int j)
      { 
       Comparable temp = a[i];
       a[i] = a[j];
       a[j] = temp;
   }
  
  public static void main(String args[])
  {
  
      int[] ys = {3,4,5,5,22,4,66,4444,33,3,656,544,4};
      Selection.sort(ys);
  }
  
  
  }
  </code></pre>