8th Dec 2018, 1:06 AM
Steve
Steve - avatar
5 Answers
+ 5
https://code.sololearn.com/c4bmtTf64XrJ/?ref=app
8th Dec 2018, 4:35 AM
Rstar
Rstar - avatar
+ 1
Thanks, so much
8th Dec 2018, 4:36 AM
Steve
Steve - avatar
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
8th Dec 2018, 4:25 AM
Rstar
Rstar - avatar
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...
8th Dec 2018, 4:28 AM
Steve
Steve - avatar
0
I mean with no such element exeption
8th Dec 2018, 4:30 AM
Steve
Steve - avatar