Gr 12 – Bubble Sort code

You have watched the video and have gone through Bubblesort 1, 2 and 3. You understand how it works. You understand why sorting integers is straightforward and why we need to use “compareTo” when sorting String. Now you just want the code . . .  Click here...

Gr 12 – Bubble Sort 3

The bubble sort can sort numbers, Strings and arrays of objects. For an animation on how the bubble sort algorithm works click here. To sort an array of objects numerically by an integer . . . Example: An array of Dog objects. The Dog class has the following fields ie...