I know that I don't. Post #5 indicates the if() condition is never true, but the test I posted clearly indicates that the if() condition is true when the word passed to the method is a palindrome.
...
Type: Posts; User: GregBrannon
I know that I don't. Post #5 indicates the if() condition is never true, but the test I posted clearly indicates that the if() condition is true when the word passed to the method is a palindrome.
...
I'm not sure what the "full project" is, but of course there's a way to test the method. Here's an example:
public class TestClass
{
public static void main( String[] args )
{
...
I changed 'parameters' to 'word', initialized 's' as "Not a palindrome", made it static, and called the method you posted with my changes from a main() method with 2 words, one that is and another...
No errors? What is 'parameters'?