KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Whimsy2


1 /* Whimsy2.java */
2
3 import org.quilt.cover.stmt.StmtRegistry;
4
5 public class Whimsy2 implements org.quilt.cl.RunTest {
6     
7     // can be private
8
public final static StmtRegistry q$$qStmtReg
9         = (StmtRegistry)
10             ((org.quilt.cl.QuiltClassLoader)QIC.class.getClassLoader())
11                 .getRegistry("org.quilt.cover.stmt.StmtRegistry");
12    
13     public final static int[] q$$q = new int[52];
14
15     public final static int q$$qID = q$$qStmtReg.registerCounts("Whimsy", q$$q);
16
17     public Whimsy2 () {
18         q$$q[7] = 92;
19     }
20     public int runTest (int x) {
21         q$$q[5]++;
22         // possible index exception
23
return q$$q[x]++;
24     }
25 }
26
Popular Tags