Home / Questions / 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.
Explanatory Question

Name the method of Scanner class that:

  1. is used to input an integer data from the standard input stream.
  2. is used to input a String data from the standard input stream.

👁 71 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

  1. nextInt()
  2. nextLine()