老师,为啥我的有错误
来源:5-3 自由编程
阿硕A
2020-01-18 20:41:58




2回答
同学你好,start()方法是Thread类中的。则建议在括号外调用start()方法。修改后代码如下:
new Thread(new GenerateWeather(wt1)).start(); new Thread(new ReadWeather(wt1)).start();
注:关于代码报错,建议将代码贴上来,方便我们复制代码直接测试。
如果我的回答解决了你的疑惑,请采纳!祝学习愉快!
阿硕A
提问者
2020-01-18

相似问题
回答 1
回答 1