Write code to check if a String is a palindrome or not? (solution)
A palindrome is a String whose reverse is equal to the original. This can be done by using either the StringBuffer reverse() method or the technique demonstrated in the solution here.
2. Write a method that will remove any given character from a String? (solution)
Hint: You can remove a given character from a String by converting it into a character array and then using the substring() method to remove them from the output string.
3. Print all permutations of a String both iteratively and recursively? (solution)
4. Write a function to find the longest palindrome in a given string? (solution)