アットウィキロゴ

あppぇ0816

class apple0816 extends Thread{
  public void run() {
int i;
    for(i = 1; i < 10; i++) {
      System.out.println(i);
      try {
        sleep(100);
      } catch (InterruptedException e) {
      }
    }
  }

  public static void main(String[] args){
    apple0816 th1 = new apple0816();
    apple0816 th2 = new apple0816();
    th1.start();
    th2.start();
  }
}
最終更新:2010年09月14日 17:12