Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    1,350

    Re: Problem with looping

    The String read by the nextLine() method is printed and then is thrown away and not saved. What is the purpose of the statement:

    System.out.println(myScanner.nextLine());
    The data on every line...
  2. Replies
    5
    Views
    1,350

    Re: Problem with looping

    There is code that reads the values from the file and computes a value.
    Can you put that code inside the loop?
  3. Replies
    5
    Views
    1,350

    Re: Problem with looping

    What does your program print out when it executes?

    The program doesn't save the String that is returned by the nextLine() method. It should save the String that was read by assigning it to a...
Results 1 to 3 of 3