GoConqr has a new look! Let us know what you think.

Notes

Untitled

Rucha Chormunge English 1 page

Content of the notes (1)

Page 1

Why nextLine is not working after nextInt in Java?

This is happening because of the Scanner. nextInt method does not read the newline character in the input generated by hitting "Enter," and so the call to Scanner. nextLine retorts after reading that newline.

Information

Description
Note on Untitled, created by Rucha Chormunge on 08/12/2022.
Created by
Rucha Chormunge
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?