KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > simple > MyClass


1
2 package simple;
3
4 import java.util.ArrayList JavaDoc;
5
6 class MyClass {
7     private int a;
8     private String JavaDoc b;
9     private ArrayList JavaDoc ints;
10
11     public int getA() { return a; }
12     public void setA(int a) { this.a = a; }
13
14     public String JavaDoc getB() { return b; }
15     public void setB(String JavaDoc b) { this.b = b; }
16 }
17
Popular Tags