Search:

Type: Posts; User: dicdic

Search: Search took 0.13 seconds.

  1. Replies
    4
    Views
    983

    [SOLVED] Re: Help with my simple Scanner program?

    the nextLine() method advances the scanner past the current line.
    I think the nextInt() method cannot do that..

    kindly see this link Scanner (Java Platform SE 7 )
  2. Replies
    4
    Views
    983

    [SOLVED] Re: Help with my simple Scanner program?

    That is because of the nextInt() method that you have used, you have read the number,
    but you have not skipped the line of the user's input,
    to avoid the bugs insert this code after you used...
Results 1 to 2 of 2