Search:

Type: Posts; User: Norm

Search: Search took 0.16 seconds.

  1. Replies
    5
    Views
    1,678

    Re: Jumps over one scanner in if else loop

    Write a small test program that uses different combinations of next... and nextLine and has... methods to see how it works.
  2. Replies
    5
    Views
    1,678

    Re: Jumps over one scanner in if else loop

    The Scanner class is tricky to use. It reads what you type in into a buffer and then returns the next token for next... calls and the whole buffer for nextLine(). If you don't clear out the newline...
Results 1 to 2 of 2