这是我的代码来检查一个单词是否是回文,但我不知道如何开始这个。递归回文检查器
我真的需要用这种方法
public static boolean pallindrome (String word1) {
int count = 0;
for (int i=0; i< s1.length(); i++){
if(s1.length/2 = 1)
return false;
}
if(count == s1.length()-1)
return true;
}
return false;
我如何开始这个方法
你有*回文*的定义吗? – 2012-09-30 09:01:06