Bubble Sort with Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Bubble Sort with Java

I am having some problems in java. The code must sort and display an array according to a starting index and an ending index. If for example I have {3,2,9,6,0,11} and I call the sort function giving the indices as parameters (2, 5), the array should be displayed like this {0, 6, 9}. Here is the code's link: https://code.sololearn.com/cww3o0OKZfJf

21st Apr 2022, 7:28 AM
Julmiste Fils Noel
Julmiste Fils Noel - avatar
2 Answers
+ 3
https://code.sololearn.com/cnuO6atc48Me
21st Apr 2022, 7:44 AM
John Wells
John Wells - avatar
+ 1
John Wells Thank you Sir!
21st Apr 2022, 7:48 AM
Julmiste Fils Noel
Julmiste Fils Noel - avatar