Explanatory Question
Name the method of Scanner class that:
- is used to input an integer data from the standard input stream.
- is used to input a String data from the standard input stream.
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.