SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the Boolean constants - Boolean.TRUE and Boolean.FALSE instead of 0 and 1. You can create your variable as of type boolean if primitive is what you are after. This way you won't have to create new Boolean objects.
Boolean.TRUE
Boolean.FALSE
0
1
boolean
Boolean