01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.simulator.crasher;
05:
06: import com.tc.exception.TCRuntimeException;
07:
08: public class HelloWorld {
09:
10: public void run() {
11: int count = 0;
12: while (true) {
13: System.out.println("count=" + count);
14: System.err.println("count=" + count);
15: try {
16: Thread.sleep(1000);
17: } catch (InterruptedException e) {
18: throw new TCRuntimeException(e);
19: }
20: count++;
21: }
22: }
23:
24: public static void main(String[] args) {
25: new HelloWorld().run();
26: }
27: }
|