GoodHope · 2005-12-05 07:07:22 · 阅读: 358 可以这样么? public void setIntval(int intval) { synchronized( intval ) { this.intval = intval; } }