Can I assign test result to a boolean variable in Java?

Posted by derrdji on Stack Overflow See other posts from Stack Overflow or by derrdji
Published on 2010-05-25T16:06:39Z Indexed on 2010/05/25 16:11 UTC
Read the original article Hit count: 219

Filed under:
|
|

When I write boolean bool = aString.indexOf(subString) != -1 Eclipse did not complain, does it mean that it is the same as boolean bool = aString.indexOf(subString) != -1 ? true : false?

© Stack Overflow or respective owner

Related posts about java

Related posts about syntax