✏️ 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
🟡 Medium
💡

Answer with Explanation

  1. nextInt()
  2. nextLine()