public class CounterDemo { public static void main(String[] args) { Counter tally = new Counter(); tally.click(); tally.click(); int count = tally.getValue(); // Sets count to 2 System.out.println("The count = " + count); tally.reset() ; // resets the Counter to 0 count = tally.getValue(); // Sets count to 0 System.out.println("The count = " + count); tally.click(); System.out.println("The count = " + tally.getValue()); } } /* The count = 2 The count = 0 The count = 1 */