help with methods
<p>I think my program should run, I'm just blanking on how to call these methods so it will work. Here's the code: </p>

<pre><code>import java.util.*;
public class median {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub

        // need to call methods

    }
    int[] arr;
    int m;
    public void selectionSort() {
        Scanner input = new Scanner( System.in );
        System.out.println("how many numbers in array: ");
         m = input.nextInt();
        System.out.println("enter"+m+" numbers: ");
        int count=0;
        while(count &lt;m){
            int num = input.nextInt();
            arr[count]=num;
        }

          int i, j, minIndex, tmp;
          int n = arr.length;
          for (i = 0; i &lt; n - 1; i++) {
                minIndex = i;
                for (j = i + 1; j &lt; n; j++)
                      if (arr[j] &lt; arr[minIndex])
                            minIndex = j;
                if (minIndex != i) {
                      tmp = arr[i];
                      arr[i] = arr[minIndex];
                      arr[minIndex] = tmp;
                }
          }
    }
    public void median(){
        if (m%2==0){
            double median = (arr[m/2]+arr[(m/2)+1])/2;
            System.out.println("the median is "+median);
        }
        else {
            System.out.println("the median is "+arr[(m/2)+1] );
        }
    }

}
</code></pre>
