答案二:
public class Test {
public static void main(String[] args) {
new Thread(new Runnable(){
@Override
public void run() {
for(int i=1; i<=100; i++){
System.out.println("i=" + i);
}
}
}).start();
}
}
三、基础简答题(5分/题)
1、break、continue、return的区别?
break用于switch和循环,用于结束s
2022-06-09 09:10:58
215KB
wps
1