Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    20
    Views
    1,100

    Re: Simple but Strange situation in my Java Code.

    I don't need the full project - the issue is contained within the code you posted (but not an easy thing to spot). Like I said, inspect that you are passing what you expect the isPalindrome method -...
  2. Replies
    20
    Views
    1,100

    Re: Simple but Strange situation in my Java Code.

    Both Greg and I posted SSCCE's that demonstrate the method (as posted) works as expected with the test input. So my advice would be to backup and have a hard look at the input for this method...is...
  3. Replies
    20
    Views
    1,100

    Re: Simple but Strange situation in my Java Code.

    I asked for an SSCCE that demonstrates the problem - see my signature for a full description of what that is, posting the full project will result in a lot of code unrelated to the problem (and code...
  4. Replies
    20
    Views
    1,100

    Re: Simple but Strange situation in my Java Code.

    Post exactly what you ran, and the result. If you ran the code I posted above, the output should be identical. Without knowing what you ran, as well as the context, we are only left to guess.
  5. Replies
    20
    Views
    1,100

    Re: Simple but Strange situation in my Java Code.

    And how are you calling the method? When you run that code, what does it print? More information is often better (removes the guesswork) - here's an example of an SSCCE, using your code above plus a...
  6. Replies
    20
    Views
    1,100

    Re: Simple but Strange situation in my Java Code.

    You did not state clearly how you know this. Did you add println's in there to see? Are you relying on the string returned from the method? Are you relying on a debugger? Whichever way, if you read...
  7. Replies
    20
    Views
    1,100

    Re: Simple but Strange situation in my Java Code.

    How do you know it evaluates to false? The code you posted does not contain any way to test this...it is always best to post an SSCCE that shows all the code necessary to reproduce the problem
Results 1 to 7 of 7