KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > rollback > ClassTwo


1 /*
2  * ClassOne.java
3  *
4  * Created on 23 February 2004, 15:49
5  */

6
7 package org.netbeans.test.rollback;
8
9 /**
10  *
11  * @author Dan
12  */

13 public class ClassTwo {
14     
15     public String JavaDoc name = "The name";
16     public String JavaDoc colour = "pink";
17     public boolean isValid;
18     
19     /** Creates a new instance of ClassOne */
20     public ClassTwo() {
21         isValid = true;
22     }
23     
24     public void invalidate() {
25         isValid = false;
26     }
27     
28     public void countToFive() {
29         System.out.println("one");
30         System.out.println("two");
31         System.out.println("three");
32         System.out.println("four");
33         System.out.println("five");
34     }
35     
36 }
37
Popular Tags