Search:

Type: Posts; User: Norm

Search: Search took 0.30 seconds.

  1. Replies
    13
    Views
    1,795

    Re: scanner.nextLine()

    I use the OS's command prompt window.
  2. Replies
    13
    Views
    1,795

    Re: scanner.nextLine()

    Interesting. I don't know what use typing characters on the console is.
    The useful part is that what is typed on the console can be read into the program and used by the program.
  3. Replies
    13
    Views
    1,795

    Re: scanner.nextLine()

    I'm not sure what you mean by "type stuff". When I open a command prompt window, I am able to type stuff into the window. It has nothing to do with java or using the Scanner class.

    Using the...
  4. Replies
    13
    Views
    1,795

    Re: scanner.nextLine()

    Did you read the API doc for the nextLine() method to see what it does? It is a method that returns a String.


    Are you talking about what appears on the console window when you type something...
  5. Replies
    13
    Views
    1,795

    Re: scanner.nextLine()

    The code posted here on the forum are real life examples of the usage of that method.

    If you have any questions about the code you have found and can not get it to compile and execute for testing,...
  6. Replies
    13
    Views
    1,795

    Re: scanner.nextLine()

    Do a search here on the forum. There are lots of programs that use that method.
  7. Replies
    13
    Views
    1,795

    Re: scanner.nextLine()

    That statement shows a object reference: scanner being used to call a method: nextLine().
    To see what that method does, read the API doc for the scanner class.
    Java Platform SE 7
Results 1 to 7 of 7