K
kbd
Trying to read up on basic java, so this will be a newbee question.
1 2
while( tokenType = tokenizer.nextToken()!= tokenizer.TT_EOF ) {
//Do something
}
Based upon operator precedence operation 2 will take place first.
Meaning nextToken() will be executed and the result compared with TT_EOF.
If the value returned by nextToken() is NOT equal to TT_EOF, the
returned by will be placed in tokenType.
If the value returned is equal to TT_EOF, then the assignment to tokenType
will not take place.
Is this correct?
Regards
kd
1 2
while( tokenType = tokenizer.nextToken()!= tokenizer.TT_EOF ) {
//Do something
}
Based upon operator precedence operation 2 will take place first.
Meaning nextToken() will be executed and the result compared with TT_EOF.
If the value returned by nextToken() is NOT equal to TT_EOF, the
returned by will be placed in tokenType.
If the value returned is equal to TT_EOF, then the assignment to tokenType
will not take place.
Is this correct?
Regards
kd