Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.80K
1 Posted Topic
The more simplest one is [code=java] public class Palindrome { static public String pal(String str, int i, int j){ if(str.length()/2 != i) if(str.charAt(i)==str.charAt(j)) pal(str,++i,--j); else return "String is Not palaindrome"; return "String is palaindrome"; } public static void main(String[] args) { String str = args[0]; System.out.println(pal(str,0,str.length()-1)); } } [/code]
The End.
subbumca08