byhieg/JavaTutorial

Java多线程基础——对象及变量并发访问第二章HasSelfPrivateNum变量问题

lookcompany opened this issue · 2 comments

cn.byhieg.threadtutorial.char02.HasSelfPrivateNum他的成员变量num应该为static

addI()方法也应该是static的

我搞错了,没事了