What am I doing wrong here with the selection sort. Keeps giving me issues about the type
<pre><code>import java.util.Scanner;
import java.io.*;

public class SortingforFun {
    static final String IN_FILE = "sorting.txt";
    static final int ARRAY_SIZE = 20000;

    public static void  main(String[] arg) {

        long[] arr1= new long [ARRAY_SIZE];


        long[] arr2 = (long[])arr1.clone();



        long startTime = System.startHere();



        int i;

        System.out.println("\n\n RoseIndia\n\n");
        System.out.println(" Selection Sort\n\n");
        System.out.println("Values Before the sort:\n");
        for(i = 0; i &lt; arr1.length; i++)
        System.out.print( arr1[i]+"  ");
        System.out.println();
        selection_srt(ARRAY_SIZE, arr1.length);
        System.out.print("Values after the sort:\n");
        for(i = 0; i &lt; arr1.length; i++)
        System.out.print(arr1[i]+"  ");
        System.out.println();
        System.out.println("PAUSE");
    }

    public static void selection_srt(long ARRAY_SIZE , long n){
        for(long x=0; x&lt;n; x++){
            long index_of_min = x;
            for(long y=x; y&lt;n; y++){
                if(ARRAY_SIZE[(index_of_min]&lt; ARRAY_SIZE[y]){
                    index_of_min = y;
                }
            }
            long temp = ARRAY_SIZE[x];
            ARRAY_SIZE[x] = ARRAY_SIZE[index_of_min];
            ARRAY_SIZE[index_of_min] = temp;
        }
    }
}
</code></pre>
