猫阿哥
2017-02-24 11:09
Thread ac = new Thread(new Actoress(),"线程小姐");这样创建线程会报这个错 怎么办? No enclosing instance of type Actor is accessible. Must qualify the allocation with an enclosing instance of type Actor (e.g. x.new A() where x is an instance of Actor).
改成静态类
深入浅出Java多线程
186088 学习 · 464 问题
相似问题
回答 2