Подскажите что не так с кодом (java) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Подскажите что не так с кодом (java)

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

8th Dec 2017, 9:54 AM
Евгений
4 Answers
+ 7
Scanner is not imported, as mentioned by RahulVerma and Kuba. Also there are some syntax errors like missing semicolon and wrong brace. See the code below: https://code.sololearn.com/cZqXC01i4jp5/?ref=app
8th Dec 2017, 12:00 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 6
Dude, where's your Scanner? ;)
8th Dec 2017, 11:55 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Import scanner first, then you will be able to use it. It is given in java in SL
8th Dec 2017, 10:07 AM
#RahulVerma
#RahulVerma - avatar
0
Thank you)
8th Dec 2017, 8:03 PM
Евгений