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?

5th Oct 2018, 3:48 PM
Mohamed Haque
Mohamed Haque - avatar
3 Réponses
0
You can use for loop for(int i = 0; i < array.length; i++) { }
5th Oct 2018, 7:38 PM
Daniel (kabura)
Daniel (kabura) - avatar
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,}
5th Oct 2018, 7:58 PM
Mohamed Haque
Mohamed Haque - avatar
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
6th Oct 2018, 5:02 AM
Daniel (kabura)
Daniel (kabura) - avatar