Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    5
    Views
    858

    Re: What's wrong with my code?

    I don't know about the while() statement, but the hasNext() looks right.
  2. Replies
    5
    Views
    858

    Re: What's wrong with my code?

    The program calls the next() method on line 29 when the isn't any more data to read.
    The Scanner class has a method that will test if there is more data so that the program can test for this...
  3. Replies
    5
    Views
    858

    Re: What's wrong with my code?

    Your formatting left off the [ and ]
    Please edit your post and wrap your code with code tags:


    YOUR CODE HERE

    to get highlighting and preserve formatting.


    Please explain.
Results 1 to 3 of 3