23rd Mar 2020, 6:07 AM
Akash Deep Deep
Akash Deep Deep - avatar
3 Answers
+ 5
You're supposed to use nextDouble() with capital "D" as it uses camelCase syntax. Also, you have some logical errors in writing if...else... conditions that you might want to check out.
23rd Mar 2020, 6:11 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 3
Akash Deep Deep You should remember that Java is case sensitive so here nextdouble() will be nextDouble(). And there should not be space before object calling and method calling. System. out.println();//wrong because of space before the object out. System.out.println(); //right
23rd Mar 2020, 6:30 AM
A͢J
A͢J - avatar
+ 2
That is capital 'd'. in.nextDouble(); https://www.sololearn.com/learn/Java/2220/
23rd Mar 2020, 6:12 AM
Avinesh
Avinesh - avatar