private static int[] selectedSort(int[] array){
if(array!=null && array.length>0){
for(int i =0;i< array.length;i++){
int key = i;
for(int j=i+1;j<array.length ;j++){
if(array[key]>array[j]){
key = j;
}
}
if(key !=i){
int temp = array[i];
array[i] = array[key];
array[key] = temp;
}
}
}
return array;
}select