标题:有些问题,请看看。
取消只看楼主
yangte
Rank: 1
等 级:新手上路
帖 子:163
专家分:0
注 册:2006-10-2
 问题点数:0 回复次数:1 
有些问题,请看看。

public class A {
int i = 1;

public A() {
Thread thread = new Thread()
{
public void run() {
for(;;) {
A.this.run();
try {
sleep(1000);
} catch(InterruptedException ie) {
}
}
}
};
thread.start();
}

public void run() {
System.out.println("i = " + i);
i++;
}

public static void main(String[] args) throws Exception {
new A();
}

}
请问括号内的""是什么意思。。谢谢了。
一位牛人写的代码,偶看不懂。。

2006-11-23 23:13
yangte
Rank: 1
等 级:新手上路
帖 子:163
专家分:0
注 册:2006-10-2
得分:0 
哦,懂了,谢谢各位。

2006-11-24 17:55



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-105005-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.128034 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved