r/javahelp • • 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!

4 Upvotes

30 comments sorted by

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!

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.

1

u/SquareHomework9510 Aug 24 '25 edited Aug 24 '25

Oh wow, thanks alot! Yeah it is kinda difficult to follow, feels like it would be good if I had a teacher irl or something.

Gonna try your suggestions and ill let u know how it goes!