java多线程练习实例
总结:
循环的使用率蛮高,Thraed.sleep(),try-catch语句
package com.aa;
public class West {
public static void main(String[] args) {
try {
for (int i = 0; i < 30; i++) {
System.out.println("周杰伦");
System.out.println("蔡依林");
Thread.sleep(60);
}
} catch (Exception E) {
System.out.println("123");
}
}
}
//
周杰伦
蔡依林
周杰伦
蔡依林
周杰伦
蔡依林
周杰伦
蔡依林
周杰伦
蔡依林
周杰伦
蔡依林
浙公网安备 33010602011771号