java 多线程

package test.run;

public class testRun {

public static void main(String[] args) {


Thread td1 = new Thread( new Runnable() {

public void run() {
exit:for(int i = 1 ; i<100;i++){

for (int j=0;j<i;j++){
if(j == 10){
break exit;
}
System.out.println("多线程测试"+j);

}
}


}
});
td1.start();

}





}

posted @ 2016-05-23 15:06  Jessi_JIA  阅读(105)  评论(0编辑  收藏  举报