KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In C, I can write an if-statement if (firstInt & 1) but when I try and do the same in Java, the compiler tells me "incompatible types" and says I need a boolean instead of an int . Is there any way to write that C code in Java?
Tags (comma-separated)
Save Edits
Cancel