import java.util.*;
public class SelectSort
{
// instance variables - replace the example below with your own
public int x;
public ArrayList<Integer> a;
public int n;
public SelectSort(int b)
{
a = new ArrayList<Integer>() ;
n = a.size();
for(int i = 1; i < n; i++)
{
SortNow(); //tried everything and the call isn't working
}
}
private int SortNow(int[] a,int i, int n)
{
int small = i;
for(int j = i; i < n; i++)
{
if(a[j] < a[small])
{
small = j;
}
}
return small;
}
}
//I know this looks simple but I'm a beginner :).