int a= some_value;
if(a) {
}
Previous C++ code is same next Java code.


int a= some_value;
if(a!=0) {
}