0
How can I compare void values with null?
5 Respuestas
+ 5
https://code.sololearn.com/c4bmtTf64XrJ/?ref=app
+ 1
Thanks, so much
0
null itself is used to determine that the value is void (which means nothing)
Suppose you have a grade system with integer subject
So you have an integer object of subject like
Integer subject1=0; // you got 0 in subject1
Integer subject2=null; // your score of subject2 is not available
0
I already know that, my question is when you don't type any value from a scanner how you compare that void.
With null doesn't work so...
0
I mean with no such element exeption