关于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
index--;
System.out.println("Current index: " + index);
this.notify();
return buffer[index];
}
这样写有什么错误么?
为什么编译的时候这句话报错如下:
Syntax error, insert ";" to complete Statement