/** * Counter is a non-negative Integer with restricted operations for counting. * * @author J. Dalbey * @version 4/14/2011 - Executable skeleton */ public class Counter { // counter value private int count; // ending value (optional) private int target; /** * Default Constructor sets counter to zero. */ public Counter() { } /** * Constructor with a target end value. * @param end is the ending value * @pre end > 0 */ public Counter(int end) { } /** * Increment by one. */ public void inc() { } /** * Check if counter has not reached the target. * @return true if count not equals target, false otherwise */ public boolean notDone() { return true; } /** * Return the counter as a printable string containing the digits in the integer. */ public String toString() { return ""; } }