/** * Class MysteryInt for HW1 on BU CAS CS 112 Fall 2011 by Leo Reyzin * Holds a single integer and allows > comparisons with another integer */ public class MysteryInt { public static final int MIN_VALUE = 0; public static final int MAX_VALUE = 1000000; private int value=MIN_VALUE; /** * Assigns the input parameter to the value held by the class * @param desiredValue */ public void setValue (int desiredValue) { value = desiredValue; } /** * Compares the value stored in the class with another value * @param secondValue * @return true if an only if value>secondValue */ public boolean isGreaterThan (int secondValue) { return (value>secondValue); } }