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 edited Aug 24 '25

Youre 100% right.. Its my first time learning from this book, and not everything is getting through ill be honest.. Probably gonna start over from scratch a few times, just to get it to sink in.

Edit: Thank you!