9th Aug 2020, 4:55 AM
kumar_bittu
kumar_bittu - avatar
2 ответов
+ 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
9th Aug 2020, 5:43 AM
A͢J
A͢J - avatar
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 }
9th Aug 2020, 5:45 AM
zemiak