public class Main {
public static boolean NullorZero(Integer num) {
return num == null || num == 0;
}
public static void main(String[] args) {
Integer num = 0;
if (NullorZero(num)) {
System.out.println("The Integer is null or zero");
} else {
System.out.println("The Integer is not null or zero");
}
}
}
/*
run:
The Integer is null or zero
*/