Fichas
Scanner
Fichas del conjunto (3)
- 1What is the scanner class been used for?To read the input from the keyboard
- 2How to use it?Create an object of Scanner
Scanner sc = new Scanner(System.in); - 3What are Scanner class methods?String next() Returns the next token from the scanner
nextLine() Moves to next line and return the value as string
nextInt() Scans the next token as an int value
nextFloat() Scans the next token as a float value
Información
- Descripción
- Fichas sobre Scanner, creado por BLU BLU el 31/01/2025.
- Creado por
- BLU BLU
- Visitas
- 0
- Valoración