Search:

Type: Posts; User: csharp100

Search: Search took 0.19 seconds.

  1. Replies
    31
    Views
    5,214

    Re: string==null or string.equals(null) problem

    Error corrected. I need to add:



    str4 = null;


    in order to "clear out" what was in it whenever it looped.
  2. Replies
    31
    Views
    5,214

    Re: string==null or string.equals(null) problem

    I do not think of you being a "jerk." I guess what I am not understanding is if the code could have been written with fewer lines, I would have written the code with fewer lines. I assume you are...
  3. Replies
    31
    Views
    5,214

    Re: string==null or string.equals(null) problem

    Interesting, now that I see the output, it is the same. I guess the question is how do I fix this? Any ideas?
  4. Replies
    31
    Views
    5,214

    Re: string==null or string.equals(null) problem

    Test output on Eclipse at home:



    Enter a word:
    emsl
    String not found
    Enter a word:
    umsl
    Word found is: slum
  5. Replies
    31
    Views
    5,214

    Re: string==null or string.equals(null) problem

    Thanks for the correction.
  6. Replies
    31
    Views
    5,214

    string==null or string.equals(null) problem

    Hi everyone,I have a small problem I am trying to figure out. I have coded the below program using Eclipse with Java 1.6. Our unix system at school uses java 1.5. The problem is with the last if...
Results 1 to 6 of 6