Notes
Untitled
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