Completion requirements
Java provides a Scanner class to facilitate data input/output. In this section, you will learn about the Scanner class that is used to get input from the user. Java also defines various methods from the Scanner class that can convert user input into appropriate data types before conducting any operation on the data.
19. End of the Chapter
Answer:
Huh? What??
End of the Chapter
End of the Chapter
Perhaps it is time to quit. When you are awake, click on a subject that interests you to go to where it was discussed.
- package I/O Packages
- input stream I/O Streams
- standard I/O streams standard I/O streams
- program, Echo First I/O Example Program.
- Scanner class The
Scanner
class. - nextLine() The
nextLine()
Method. - nextInt() The
nextInt()
Method. - string, conversion to int Converting a data String into an int.
- InputMismatchException
InputMismatchException
- program, adding two ints Program to add two integers.
The next chapter discusses input of floating point numbers.