Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    13
    Views
    2,220

    [SOLVED] Re: Could someone help me with this code?

    It helps to print out the values of the Strings that are being compared so you can see what the code is doing.
    Add some printlns just before the if test with the equals() to show their values....
  2. Replies
    13
    Views
    2,220

    [SOLVED] Re: Could someone help me with this code?

    See post #6
  3. Replies
    13
    Views
    2,220

    [SOLVED] Re: Could someone help me with this code?

    Does it work now?
  4. Replies
    13
    Views
    2,220

    [SOLVED] Re: Could someone help me with this code?

    Use the equals() method when comparing the contents of two Strings, not the == operator
Results 1 to 4 of 4