package counter; public class CounterTester { public static void main(String[] args) { System.out.println("Test of the original Counter class..."); Counter c = new Counter(); System.out.println("c is " + c); System.out.println("c count is " + c.getCount()); c.setCount(10); System.out.println("c count after 10 is " + c); c.decrement(); System.out.println("c after decrement is " + c); c.increment( ); System.out.println("c after increment is " + c); System.out.println("\nTest to show that x++ adds one after evaluation..."); int x = 0; System.out.println("x=" + (x++)); System.out.println("Now x is " + x); System.out.println("And then x is " + (++x)); System.out.println("\nTest of the extended Counter class..."); System.out.println("Before decrementing by 3 c is " + c); c.decrement(3); System.out.println("After decrement c is " + c); c.increment(12); System.out.println("After incrementing by 12 " + c); Counter newC = new Counter(6); System.out.println("newC is initialized " + newC); } }