-2
Could someone help me with this exercise by explaining?
Ex: Write a Function that checks if a Given word is a palindrome. Character case should be Ignored. For example, isPalindrome("Deleveled") should Return true as Character case should be Ignored, Resulting in "deleveled", which is a palindrome Since it reads the same backward and foward.
public class Palindrome {
public static boolean isPalindrome(String word) {
throw new UnsupportedOperationException("Waiting to be implemented.");
}
public static void main(String[] args) {
System.out.println(Palindrome.isPalindrome("Deleveled"));
}
}
First, you should understand the definition of a palindrome. Then, think about how you will verify whether the word is a palindrome or not. If, after writing your code, you are still not getting it, put what you tried in your question.
– g-otn
I do not understand why have statement on the line of public Static
– game-extreme
What statement?
– Woss