Redian新闻
>
关于syncronized语句的问题
avatar
关于syncronized语句的问题# Java - 爪哇娇娃
c*n
1
syncronized(this) {
index--;
System.out.println("Current index: " + index);
this.notify();
return buffer[index];
}
这样写有什么错误么?
为什么编译的时候这句话报错如下:
Syntax error, insert ";" to complete Statement
avatar
c*n
2
ft!!!
这个错误太弱了......
其实syntax highlight 肯定是有的(我用的eclipse), 只不过我没注意到这个单词没被高
亮显示而已
谢谢!

I think you are missing an "h" - the keyword is "syncHronized". Time to turn
on syntax highlight, eh? 8-)
avatar
w*r
3
haha..............well, learn something new today?



【在 c*********n 的大作中提到】
: ft!!!
: 这个错误太弱了......
: 其实syntax highlight 肯定是有的(我用的eclipse), 只不过我没注意到这个单词没被高
: 亮显示而已
: 谢谢!
:
: I think you are missing an "h" - the keyword is "syncHronized". Time to turn
: on syntax highlight, eh? 8-)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。