Computer Science, asked by yashashvi5689, 1 month ago

A method to accept a real number through Scanner object? ​

Answers

Answered by manjotdevgun
11

Answer:

a package needed to import scanner class. java.util.

a method that accepts a character through scanner object. charAt()

a package needed to import Stream Reader Class. java.io.

a method to accept an exponential value through scanner object. nextDouble()

a method that accepts an integer token through scanner object.

Answered by Itzmissprincess
11

Answer:

Input In Java

  • a package needed to import scanner class. java.util.
  • a method that accepts a character through scanner object. charAt()
  • a package needed to import Stream Reader Class. java.io.
  • a method to accept an exponential value through scanner object. nextDouble()
  • a method that accepts an integer token through scanner object. nextInt()
Similar questions