Java多线程基础——对象及变量并发访问第二章HasSelfPrivateNum变量问题
lookcompany opened this issue · 2 comments
lookcompany commented
cn.byhieg.threadtutorial.char02.HasSelfPrivateNum他的成员变量num应该为static
lookcompany commented
addI()方法也应该是static的
lookcompany commented
我搞错了,没事了