Let's say I have boolean show and difficult method public boolean isArraySorted( ).
I want to know how if statement works, and if checking order means anything. Basicly what I want to is if( !show && isArraySorted( ) ) is faster than if( isArraySorted( ) && !show ).
As far as I know statements are checked one after another until one fails, right ? So keeping this in mind if( !show && isArraySorted( ) ) should be faster ( at least slightly ). Please, correct me if I'm wrong.