Selection sort not working

I write correct code but still its not working.import java.util.*;
public class Main {
public static void main(String args[]) {
int[] arr={20,49,26,16,25};
}
System.out.println(arr);
for (int i=0;i<arr.length-1;i++){
int min=i;
for(int j=i+1;j<arr.length;j++){
if(arr[j]<arr[min]){
min=j;
}
}

int temp= arr[min];
arr[min]=arr[i];
arr[i]=temp;
}
for(int i=0;i<arr.length;i++){
System.out.println(arr[i] +" ");
}
}
}