String palindrome in java using stringbuffer

Let’s learn string palindrome in java using stringbuffer. String palindrome in java using stringbuffer Let’s learn to find if a string is a palindrome using StringBuffer. First we have to create StringBuffer object ‘sb’. Then pass given string as parameter to the constructor. Now reverse contents of given string using reverse() method of StringBuffer class.…

Read More String palindrome in java using stringbuffer