+ 2

What's wrong with my code? [SLOVED by TheWhiteCat]

My code: import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner s = new Scanner(System.in); String Nickname = s.nextLine; Whats wrong? Java give error

29th Dec 2019, 10:08 PM
FerutiiA1t
FerutiiA1t - avatar
3 Respuestas
+ 3
Twylux , I think you are missing the brackets "()" after nextLine method 🐱
29th Dec 2019, 10:11 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 3
I like when people add [SOLVED] in their question, I would really like it if it was a rule in SoloLearn. Anyway, just wanted to say you wrote it as SLOVED :)
30th Dec 2019, 3:24 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
TheWhiteCat, Woo, thanks, now my code is working
29th Dec 2019, 10:13 PM
FerutiiA1t
FerutiiA1t - avatar