Implementation of selection sort in Java
<p>I think I have done the selection sort but I am not sure. Is this really an implementation of selection sort?</p>

<pre><code>static void selectionSort()
    {
        int min = Integer.MIN_VALUE;
        int n = 0;
        for(int I=0; I&lt;arraySize; I++)
        {

            min = dataArray[I];
            for(int j=I; j&lt;n; j++)
            {
                if(dataArray[min]&lt;dataArray[j])
                  {
                        min = j;
                        if(dataArray[min] &lt; dataArray[I])
                        {
                            int temp = dataArray[I];
                            dataArray[I] = dataArray[min];
                            dataArray[min] = temp;
                        }
                  }
            }
        }   
    }
</code></pre>
