KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > InnerDup


1 public class InnerDup
2 {
3     int x = 0;
4     
5     public void m1()
6     {
7         x += 1;
8         x += 2;
9         x += 3;
10         x += 4;
11         x += 5;
12         x += 6;
13         x += 7;
14         x += 8;
15         x += 9;
16         x += 10;
17         x += 11;
18         x += 12;
19     }
20
21     public void m2()
22     {
23         x += 1;
24         x += 2;
25         x += 3;
26         x += 4;
27         x += 5;
28         x += 6;
29         x += 7;
30         x += 8;
31         x += 9;
32         x += 10;
33         x += 11;
34         x += 12;
35         x += 13;
36         x += 14;
37     }
38
39     public void m3()
40     {
41         x += 1;
42         x += 2;
43         x += 3;
44         x += 4;
45         x += 5;
46         x += 6;
47         x += 7;
48         x += 8;
49         x += 9;
50         x += 10;
51     }
52
53 }
Popular Tags