Search:

Type: Posts; User: newbie

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,802

    Re: Very Basic Java input Problem

    The reason you don't get output is because you don't have else clauses to counter total mismatches.
    The reason it seeks an else clause is because program logic is wrong.

    When you compare chars...
  2. Replies
    7
    Views
    1,802

    Re: Very Basic Java input Problem

    You would get errors as I only gave up the code for your main method.
    For it to work, you obviously need to keep your original class declaration and imports.

    The reason I nested them properly was...
  3. Replies
    7
    Views
    1,802

    Re: Very Basic Java input Problem

    Your problem is simply based on misinterpretations of how your if blocks are nested.
    To avoid this in the future, always use braces to open and close each block.

    Here I have simply added in all...
Results 1 to 3 of 3