+ 3

Can anyone please help me find the problem in this code?

I've just started learning Java, and coding in general, and there seems to be a lot of details to remember. Would somebody mind telling me which detail I forgot this time? Thank you so much! https://code.sololearn.com/cgOue18GYCDo/?ref=app

25th Oct 2017, 11:14 PM
Rachel L.
Rachel L. - avatar
2 Answers
+ 8
You're forgetting the parentheses around the Birthyear in the println call. System.out.println(BirthYear); ^ ^
25th Oct 2017, 11:25 PM
LunarCoffee
LunarCoffee - avatar
+ 5
println is a method so you need (). Given you are passing, Birthyear to it use: System.out.println(Birthyear);
25th Oct 2017, 11:26 PM
John Wells
John Wells - avatar