public class ConterTest { public static void main (String args[]) { System.out.println("\nRollOverCounter"); RollOverCounter roC = new RollOverCounter(0,3); count(roC); System.out.println("\n\n\nStoppingCounter"); StoppingCounter sC = new StoppingCounter(0,3); count(sC); } public static void count (BasicCounter counter) { System.out.println("Count Up"); System.out.println("Starting at : " + counter.getCurrentValue()); for (int i=0; i<10; i++) { counter.countUp(); System.out.println("Current Value: " + counter.getCurrentValue()); } System.out.println("\nCount Down"); System.out.println("Starting at : " + counter.getCurrentValue()); for (int i=0; i<10; i++) { counter.countDown(); System.out.println("Current Value: " + counter.getCurrentValue()); } } }