Bart Boersma wrote:Based on the above I have 2 questions:
1) What do they mean with: The variable b is assigned true on line 3? Is this a typo since boolean b is declared and initialized on line 4.
2) How does an assignment operator works in an if-then statement?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Bart Boersma wrote:
Based on the above I have 2 questions:
1) What do they mean with: The variable b is assigned true on line 3? Is this a typo since boolean b is declared and initialized on line 4.
2) How does an assignment operator works in an if-then statement?
Cheers
There are three kinds of actuaries: those who can count, and those who can't.
Bart Boersma wrote:So I am correct in stating that whatever the value of b is before the if statement does not matter?
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
Consider Paul's rocket mass heater. |