Search:

Type: Posts; User: GregBrannon

Search: Search took 0.09 seconds.

  1. Re: Simple but Strange situation in my Java Code.

    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.
    ...
  2. Re: Simple but Strange situation in my Java Code.

    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 )
    {
    ...
  3. Re: Simple but Strange situation in my Java Code.

    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...
  4. Re: Simple but Strange situation in my Java Code.

    No errors? What is 'parameters'?
Results 1 to 4 of 4