Click here to Skip to main content
15,943,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please help me i need this programme nesecary
thanks
Posted
Updated 10-Mar-10 23:10pm
v4

Java
public static boolean ispal(String s)
{
   int len = s.length();
   if (len<=1) 
     return true;
   else
   {
     if (s.charAt(0)==s.charAt(len-1))
       return ispal(s.substring(1,len-1));
   }
   return false;
}
 
Share this answer
 
v2
thanks alot for your help
thanksssssssssssssssssssssss
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900