Hello,
this is my first post
I'm in the guessing Game in Chapter 2 of Head First
Java (page 39).
Here's the code I've got entered:
now in the GuessGame class, where guessp1 = p1.number; it's not assigning the value from p1.number to guessp1. (also p2 and p3)... just look at 29-35
A workaround would of course be to return a value from p1.guess, but that's not the point of doing OO... is it?
Mind you this isn't exactly the way I would have coded it, I'm just new to java (just started about 1 hour ago...)... actually I worked with Java 1.02 in school, when it first came out... freakishly slow... the newer version is much better...