Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,307

    [SOLVED] Re: Basic Code Problem

    It's the lineend character in the Scanner's buffer that is returned as an empty String, the blanks/spaces in the input are skipped over.
    If you added this: System.out.println("Name "+i+" =" +name...
  2. Replies
    8
    Views
    1,307

    [SOLVED] Re: Basic Code Problem

    Scanner methods can be tricky. The Scanner buffers input and can block waiting for input. It will save the lineend character generated by pressing Enter in its buffer and return it with the...
Results 1 to 2 of 2