Why is this showing error?(that commented lines in the below program ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is this showing error?(that commented lines in the below program )

https://code.sololearn.com/c4vDz7gEQQqp/?ref=app

28th Feb 2019, 8:02 AM
Hakash
Hakash - avatar
6 Answers
+ 3
You missed the "new" keyword =>Scanner var = new Scanner (System.in);
28th Feb 2019, 8:14 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
You are welcome 😉
28th Feb 2019, 8:17 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Thanx for your(krOW) advise, I got it!!! I am new to programming ,I didn't know how to use scanner in java and take the input from user ,now only I learned it from net
28th Feb 2019, 9:20 AM
Hakash
Hakash - avatar
+ 1
Ok
28th Feb 2019, 9:25 AM
Hakash
Hakash - avatar
0
Thanx
28th Feb 2019, 8:16 AM
Hakash
Hakash - avatar
0
https://code.sololearn.com/c4vDz7gEQQqp/?ref=app Now also I am getting some error The Question is finding sum of even term of fibonacci series
28th Feb 2019, 8:22 AM
Hakash
Hakash - avatar