A palindrome is a word which, when reversed, is the same. For example radar or Hannah.. You are to write a method which, when passed a string, will determine if it is a palindrome or not.

public boolean isPalindrome(String text)

Hint - You will need to use the charAt(int) method. E.g. text.charAt(4) would return the 5th letter of a string.

 

 
Basics
Menu
Search