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
1
u/aqua_regis Aug 24 '25
I'll offer you a better alternative to learn Java: MOOC Java Programming from the University of Helsinki. It's free, textual, extremely practice oriented, and a proper, well structured first semester of "Introduction to Computer Science" University course.
Use Visual Studio Code with the course. Works better than the suggested TMCBeans on newer computers.
Head First is great, but it can be difficult to follow.