KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > NotStartable


1
2 public class NotStartable {
3
4     private StringBuffer JavaDoc sb;
5     public NotStartable(TestComp tc, StringBuffer JavaDoc sb) {
6         this.sb = sb;
7         sb.append("-NotStartable");
8         if (tc == null) {
9             throw new NullPointerException JavaDoc();
10         }
11     }
12
13     public void start() {
14         sb.append("*NotStartable(started)");
15
16     }
17     public void stop() {}
18 }
19
20
Popular Tags