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.

Long Answer
Views 67

Answer:

  1. nextInt()
  2. nextLine()

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.