Notizen
Ohne Titel
Inhalt der Notizen (1)
Seite 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.
Informationen
- Beschreibung
- Notiz am Ohne Titel, erstellt von Rucha Chormunge am 08/12/2022.
- Erstellt von
- Rucha Chormunge
- Aufrufe
- 0
- Bewertung