0
Sort array in java with double and single loop
Can anyone say, how to sort a array in java with double loop and also with a single loop?
3 Réponses
0
You can use for loop
for(int i = 0; i < array.length; i++) {
}
0
Its just a loop, but how can I sort
an array like
Int [] number ={2,50,60,3,45,20,35,100,70,80,}
0
There are many possibilities, below the Bubble short method
https://en.m.wikipedia.org/wiki/Bubble_sort
https://code.sololearn.com/cFV54QI2sB48/?ref=app