KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > BasicLoad


1 /* BasicLoad.java */
2
3 /**
4  * This file is done separately to make sure it will not be found on
5  * the classpath.
6  *
7  * It needs to be findable by the system class loader as a resource.
8  */

9
10 public class BasicLoad implements org.quilt.cl.RunTest {
11
12     public int field0 = 6;
13     public static final int FIELD1 = 1;
14
15     public BasicLoad() { }
16
17     public void doSomething() { field0++; }
18     public void doSomethingElse() { doSomething(); }
19     public void doException() throws Exception JavaDoc { }
20
21     public int runTest(int x) {
22         doSomething();
23         doSomethingElse();
24         return x*x;
25     }
26 }
27
Popular Tags