+ 1

Error in code

This code runs in NetBeans, but for some reason here https://code.sololearn.com/cZFMG9VSYEUg/#java no. Thanks.

12th Oct 2017, 5:00 AM
Gustavo Gomez
Gustavo Gomez - avatar
4 Answers
+ 4
Try to add at the begining import java.util.Scanner; and follow debugging ;-)
12th Oct 2017, 5:26 AM
Daniel
Daniel - avatar
+ 3
Maybe he did not copy the import from netbeans to playground.
12th Oct 2017, 6:40 AM
Jonas Schröter
Jonas Schröter - avatar
0
How did it work on Netbeans then?
12th Oct 2017, 6:29 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar