title: My program tells me that my method is undefined for my type what does that mean?
body: <p>I wrote a code that is supposed to take an array and sort it from smallest value to largest, but I get an error. this is the code </p>
  
  <pre><code>public class minHeapify{
      public static void exchange(int a[],int i,int j) {
          int temp = a[i];
          a[i] = a[j];
          a[j] = temp;
      }
      public static int parent(int i) {
          return (int) Math.floor((i - 1)/2);
      }
      public static int left(int i) {
          return 2*i + 1;
      }
      public static int right(int i) {
          return 2*(i+1);
      }
      public minHeapify(int a[], int start,int end) {
          int l = left(start); int r = right(start);
          int smallest;
          if(l &gt;= end){
              smallest = (a[l] &lt; a[start])? l: start;
          }
          if(r &gt;= end){
              smallest = (a[r] &lt; a[smallest])? r: smallest;
          }
          if(smallest != start) {
              exchange(a,start,smallest);
              minHeapify(a,smallest,end);
          }
      }
  } 
  </code></pre>
  
  <p>the error that I get is " The method minHeapify(int[], int, int) is undefined for the type minHeapify" and im not sure what that means.</p>