Hallöchen!
Ich hab (aus einer Klausur) folgende Codezeilen und hätte gern gewusst (zum Nachvollziehn), warum das rauskommt, was dann da rauskommt. :fresse:
int hilf;
int [] a = {6,8,2,9,0};
for (int i=0;i<a.length-1;i++)
for (int j = i + 1; j < a.length; j++)
if(a[i] > a[j]) {...