Hallo, ich würde gerne im Array Werte tauschen, es soll die niedrigste und höchste Zahl mit einer 0 ausgetauscht werden. Ich habe jetzt erst mal die Zahlen nach Größe sortiert, aber ich weiß nicht genau wie ich die Zahlen umtausche. Ich hatte es mit ner for Schleife versucht aber funktioniert nicht wie ich will 
Java:
public static void main(String[] args){
int[] a = {15,3,5,0,20,20};
sortier(a);
}
public static int[] sortier(int[] a ){
int temp;
for(int i = 1; i < a.length; i++){
for(int j = 0; j < a.length - i; j++){
if(a[j] > a[j+1]){
temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
}
}
}
return a;
}