Search:

Type: Posts; User: lotus

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    4,678

    Re: reading a sentence

    i tried using nextLine but it also skips to another line
  2. Replies
    4
    Views
    4,678

    Re: reading a sentence

    i figured it out when i put this static Scanner myScanner = new Scanner(System.in).useDelimiter("\r\n"); it works any idea what the .useDelimiter does?
  3. Replies
    4
    Views
    4,678

    reading a sentence

    i used .next() in my program and when i type a sentence with a spacing it goes to the next line with another prompt sentence anyone knows why?
    i will upload screenshots of the problem i have.


    ...
Results 1 to 3 of 3