GoodHope · 2005-12-05 15:08:19 · 阅读: 363 如果要用一个全局锁能不能这样 public void setIntval(int intval) { synchronized( null ) { this.intval = intval; } }