Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    8
    Views
    1,243

    Re: Code is ignoring the read.

    Add an extra call to nextLine() after a call to nextDouble() and before a call to the nextLine() method where you want to read a line.
    The extra call to nextLine() will read the endline character...
  2. Replies
    8
    Views
    1,243

    Re: Code is ignoring the read.

    That's the Scanner problem when the code calls nextLine() following a call to one of the other next methods which leave the lineend character in the Scanner's buffer.
    You need to call nextLine()...
  3. Replies
    8
    Views
    1,243

    Re: Code is ignoring the read.

    Print out the contents of songRemove after the read to see what is in it. I suspect it will be an empty String.
  4. Replies
    8
    Views
    1,243

    Re: Code is ignoring the read.

    The posted code doesn't show anything after the read.
    How do you know that the read was skipped? What if the read read an empty line? Did you print out what was read to see? Add a println after...
Results 1 to 4 of 4