0
Why my code outpoot got error
2 odpowiedzi
+ 1
kumar_bittu You have written 3nd loop outside the main method and also i declared inside 1st loop but accessed outside the loop.
https://code.sololearn.com/cj7T19m1qAPS/?ref=app
0
problem with parentheses
// }
int temp=a[i];
a[i]=a[minInd];
a[minInd]=temp;
}
for (int e: a){
// System.out.print(a+" ");
System.out.print(e+" "); //not a
}
} // added
}