What is the statement that can be used in Java to represent a missing value of a variable. for instance I want to write a code:
if (a>=23) income = pay_rate;
you could try this as well, maybe just the way I like to do it, but up to you :p
if(a >= 23){ income = payRate; } else{ income = null; }
rather than setting it to null by default, you set it to null after it checks what a is. also, make sure income is either an Integer or Double
null
a
Integer
Double