Platinum Partner

Method To Check If The Given String Is Palindrom Or Not.

// Checks if the given string is a palindrome/not.


public static boolean isPalindrome(final String text) {
  for (int i = 0, j = text.length() - 1; i < text.length() / 2; i++, j--) {
     if (text.charAt(i) != text.charAt(j)) {
	return false;
     }
  }
  return true;
}
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}