Duh. Thanks. The message confused me on what was wrong.
Praveen Kumar M K
Joined: Jul 03, 2011
The message was indeed right, in a different way
Unlike C and C++, Java enforces strict type checking extensively during compilation. Here the individual expressions of your if statement i.e., intentToGraduate = true and majorSheet = true did not yield a boolean type with value "true" or "false" as they were assignment operations. Hence you got an unexpected type error.
I realize you're a beginner, so if what I'm about to say confuses you, then just put it aside for a while (or ignore it entirely). What I would do with that code is this:
(1) Don't need "== true"...
(2) Don't need an if-statement...
(3) Don't need a temporary variable...
You may find the end result hard to understand. That's completely normal, it takes a while to get used to boolean values, so if you find the original version easier to understand, stick with that for now.