Apuntes
Sin título
Contenido del apunte (1)
Página 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.
Información
- Descripción
- Apunte sobre Sin título, creado por Rucha Chormunge el 08/12/2022.
- Creado por
- Rucha Chormunge
- Visitas
- 0
- Valoración