Computer Science, asked by kennye001, 1 year ago

How to write a java program which accepts double data type from the keyboard?

Answers

Answered by gauravarduino
0

Explanation:

Use a Scanner object to scan through a stream of input characters and to convert them into a float or a double . The methods that do this are nextFloat() and nextDouble() . Here is a program that inputs a string of characters and converts that string into primitive type double .

Similar questions