Hi, I need help getting started on this program:
Write a sort method that uses the bubble- sort algorithm. The bub-ble- sort algorithm makes several passes through the array. On each pass, suc-cessive neighboring pairs are compared. If a pair is in decreasing order, its values are swapped; otherwise, the values remain unchanged. The technique is called a bubble sort or sinking sort because the smaller values gradually bub-ble their way to the top and the larger values sink to the bottom. Use 6.0, 4.4, 1.9, 2.9, 3.4, 2.9, 3.5 to test the method.
I have taken java, this is my second time around, but we never covered searching or sorting the first time I took it. So, I'm not very familar or understanding this concept well enough. So, I was wondering if someone could provide me even a similar program that I might be able to follow and understand from that would be very helpful. That way I will get an idea of how it works, something fairly simple. This assignment is due July 8th. Thank you in advance! :)