Bubble Sort Java Program

Bubble sort in java is the simplest sorting technique. In bubble sort algorithm each element is compared to next adjacent element, if the next element is smaller, then it will be swapped by previous element. Although this technique is simple but it is too slow as compared to other sorting techniques. Below I have shared …

Bubble Sort Java Program Read More »

String Palindrome in Java

Here you will get program for string palindrome in java.   A string is palindrome if the string is equal to its reverse. Take below examples. Palindrome: asdsa, madam, mom, etc. Not Palindrome: roar, fish, gate, etc. Below I have shared a program that will check a string is palindrome in java or not. In …

String Palindrome in Java Read More »