Which one is better Java coding style?
boolean status = true; if (!status) { //do sth } else { //do sth }
or:
The first one, or if (status) { /*second clause*/ } else { /* first clause */ }
if (status) { /*second clause*/ } else { /* first clause */ }
EDIT
If the second form is really desired, then if (false == status) , while uglier, is probably safer (wrt typos).
if (false == status)