javaclass

tests/ComparisonTest.java

81:2e78d10e4a35
2004-12-09 Paul Boddie Added a simple comparison test.
     1 public class ComparisonTest {     2      3     public boolean equals(int x, int y) {     4         if (x == y) {     5             return true;     6         } else {     7             return false;     8         }     9     }    10     11     public boolean lessThan(int x, int y) {    12         if (x < y) {    13             return true;    14         } else {    15             return false;    16         }    17     }    18     19     public boolean greaterThan(int x, int y) {    20         if (x > y) {    21             return true;    22         } else {    23             return false;    24         }    25     }    26 }