Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Re: Help with Scanner class - Reading Data from a file

    Better check your input data. The output doesn't look anything like what the input you posted should produce. Something is out of order.
    What statements printed: Mary 2 times without an identifying...
  2. Re: Help with Scanner class - Reading Data from a file

    I don't understand your printout. It shows that the 2 tokens for the names were read and then the double and then the int. All four tokens on the last line were read OK.
    How can you get an...
  3. Re: Help with Scanner class - Reading Data from a file

    Print out the values of fName and lName to see what is being read.

    Your while loop tests if there is ONE token available (hasNext) but your code tries to read 3 tokens.
Results 1 to 3 of 3