{"id":247,"date":"2015-06-30T11:07:03","date_gmt":"2015-06-30T01:07:03","guid":{"rendered":"https:\/\/learn-java-by-example.com\/?p=247"},"modified":"2015-06-30T14:37:48","modified_gmt":"2015-06-30T04:37:48","slug":"bubble-sort","status":"publish","type":"post","link":"https:\/\/learn-java-by-example.com\/java\/bubble-sort\/","title":{"rendered":"Bubble Sort"},"content":{"rendered":"

The Bubble Sort algorithm gets it’s name from the fact that on each pass, one element of the array ‘bubbles’ it’s way through to it’s correct (sorted) position in the array. Rather than me try and explain the details the following video gives a great visual demonstration of how the algorithm works. The source code is also heavily commented to explain how the bubble sort is implemented.<\/p>\n