Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    6
    Views
    2,510

    Re: Scanner.useDelimiter("\n") Problem

    I guess using the \n changes the way Scanner works.
    Here is what I tried and what I got:



    Scanner s = new Scanner(System.in);
    s.useDelimiter("\n"); //<<<<<<<<<<
    ...
  2. Replies
    6
    Views
    2,510

    Re: Scanner.useDelimiter("\n") Problem

    This says that the input being read was not an integer.
    What did you type into the console that caused this?
  3. Replies
    6
    Views
    2,510

    Re: Scanner.useDelimiter("\n") Problem

    Please copy and paste the full text of the error message here.
Results 1 to 3 of 3