+ 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
2 Answers
+ 8
You're forgetting the parentheses around the Birthyear in the println call.
System.out.println(BirthYear);
^ ^
+ 5
println is a method so you need (). Given you are passing, Birthyear to it use:
System.out.println(Birthyear);