Closed berry120 closed 2 years ago
The result of the compareTo() method should always use <0 0 or >0 to check the result - it shouldn't match any other value exactly (like -1.)
compareTo()
<0
0
>0
-1
In UpdateCheck, line 54, that's exactly what we're doing though - it should instead check for <0.
I would like to do this, Please assign to me
All yours!
The result of the
compareTo()
method should always use<0
0
or>0
to check the result - it shouldn't match any other value exactly (like-1
.)In UpdateCheck, line 54, that's exactly what we're doing though - it should instead check for
<0
.