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