Bubble Sort using own customized Class in Java

Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted.

In this program, we create our own class of sorting using arrays and the process of swapping. The user can input any numbers to sort based on its required value.

bubble sort

bubble sort

Download Bubble Sort



View all contributions by

    0 comments… add one