Figure 3:
Equivalent class Java program for the 4-bit magnitude comparator.