Cryptography Reference
In-Depth Information
//Any nonmatching digit sets answer to false
if (digits[i]!=other.digits[i]) answer=false;
return answer;
}
We now demonstrate a test program for the lessThan(Int) and equals(Int) methods. The
code can be found on the topic's website under the class name TestIntComparisonMethods.
Screen shots of the test program are shown in Figure 2.3a-d.
(a)
(b)
(c)
(d)
FIGURE 2.3
Search WWH ::




Custom Search