double length=sc.nextDouble();
what does this mean while writing a java program
Share
double length=sc.nextDouble();
what does this mean while writing a java program
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
This statement scans the next token of the input as double and stores the value in a double variable named length in Java.
Question:-
double length=sc.nextDouble();
What does this statement mean?
Answer:-
Given statement is used to input next token of double data type and store the value in the variable named 'length' of data type 'double'.