アットウィキロゴ

apple0818

class apple0818 extends Thread{
public void run() {
int i;
double x[]=new double[101];
for(i = 1; i < 100; i++) {
x[i]=i*i;
}
   for(i = 1; i < 100; i++) { 
     System.out.println(x[i]);
     try {
       sleep(500);
     } catch (InterruptedException e) {
     }
   }
 }

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