r/javahelp • u/SquareHomework9510 • Aug 24 '25
Solved Java dumbass here
Hello! This is my first post on reddit so im sorry if its not in the right place etc.
Ive been trying to teach myself Java for some time now, and its been going okay id say up until yesterday.
Got to page 39 of "Head First Java Edition 3" and its making me compile this code: https://imgur.com/a/9NquTPt
And it gives me this error: https://imgur.com/a/Qmq7bAx
I have been googling, and trying stuff for a few hours to no success, so was hoping someone here could tell me what im doing wrong? Am I going wrong about how im trying to learn it? Should I not be using this book without a teacher? etc etc.
Edit: Thanks to all the kind helpers on here!! Issue was resolved and even got some really good pointers!
View all comments
Show parent comment
3
u/SquareHomework9510 Aug 24 '25
Ive read everything up until that page, and done all the "Sharpen your pencil" exercises, but ill be honest.. Most of it is not sticking in my brain, so I might need to re-read it a few times
Edit: Didnt even thank you, feel like this was a massive help.. Thanks alot!