2013-04-10 23:57:08 -07:00
|
|
|
public static boolean rPali(String testMe){
|
|
|
|
|
if(testMe.length()<=1){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2014-01-17 05:32:22 +00:00
|
|
|
if(!(testMe.charAt(0)+"").equals(testMe.charAt(testMe.length()-1)+"")){
|
2013-04-10 23:57:08 -07:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return rPali(testMe.substring(1, testMe.length()-1));
|
|
|
|
|
}
|