1 package test.triangle;
2 
3 
4 /**
5  * count the number of times something is called
6  * used to check whether certain methods have been called
7  */
8 public class CountCalls {
9   static int numCalls = 0;
10 
incr()11   public static void incr () {
12     numCalls++;
13   }
14 
getNumCalls()15   public static int getNumCalls() {
16     return numCalls;
17   }
18 }
19