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