发布网友
共1个回答
热心网友
将这个方法改成静态的
public synchronized void test(Object o) {
public static synchronized void test(Object o) {
调用的时候相应的改成
new Num1().test(this);
Num1.test(this);