Suppose a Scanner object is created as follows:
Scanner input = new Scanner(System.in);
What method do you use to read a real number?
a. input.nextDouble();
b. input.nextdouble();
c. input.double();
d. input.Double();
a The correct method to read a real number is nextDouble().
Computer Science & Information Technology
You might also like to view...
If your computer requires that you install memory in pairs, it doesn't matter if the two memory modules are the same type, size, or speed.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
When a new tab stop has been set, all default tabs to the left of the newly set tab are automatically cleared.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology