...
Code Block | ||
---|---|---|
| ||
Boolean b1 = true; // Or Boolean.True Boolean b2 = true; // Or Boolean.True if(b1 == b2) { // always equal // ... } |
If references are to be compared use the equals()
method instead of relational operators.
...
...
Code Block | ||
---|---|---|
| ||
Boolean b1 = true; // Or Boolean.True Boolean b2 = true; // Or Boolean.True if(b1 == b2) { // always equal // ... } |
If references are to be compared use the equals()
method instead of relational operators.
...