Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,127

    Re: Practicing reading from file.

    That's not what I was asking. I asked for the line that was read to be printed. Something like this:

    String theLine = reader.nextLine(); // Read the line
    ...
  2. Replies
    8
    Views
    1,127

    Re: Practicing reading from file.

    What is printed out when the contents of the line that is read (returned by nextLine) was printed?
    You posted the output from the Arrays class's toString() method.


    I guess your problem is with...
  3. Replies
    8
    Views
    1,127

    Re: Practicing reading from file.

    What is printed out when the contents of the line that is read (returned by nextLine) was printed?
  4. Replies
    8
    Views
    1,127

    Re: Practicing reading from file.

    You need to see what the exception is. Change the catch block to call the printStackTrace() method which will print out the text of the error message. Given that you can work on the problem.

    Also...
Results 1 to 4 of 4