No, actually it's expecting a ")". Count them on that line.
(Also, you need to use [/code] as the end tag after your code. Note the slash.)
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
If you want to use it, it does. Any variable must be explicitly declared.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
First of all:
Next time post what kind of error you get and where you get it so we wouldn't have to search the entire code for the error.
And second:
This:
public static boolean isPalindrome(s) {
}
should be:
public static boolean isPalindrome(String s) {
}
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
And you don't have to use recursion to test whether something is a palindrome or not.
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354