+ 1
Error in code
This code runs in NetBeans, but for some reason here https://code.sololearn.com/cZFMG9VSYEUg/#java no. Thanks.
4 Answers
+ 4
Try to add at the begining
import java.util.Scanner;
and follow debugging ;-)
+ 3
Maybe he did not copy the import from netbeans to playground.
0
How did it work on Netbeans then?