Thread ac = new Thread(new Actoress(),"線程小姐");這樣創(chuàng)建線程會(huì)報(bào)這個(gè)錯(cuò) 怎么辦?
Thread ac = new Thread(new Actoress(),"線程小姐");這樣創(chuàng)建線程會(huì)報(bào)這個(gè)錯(cuò) 怎么辦? 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).
2017-02-24
改成靜態(tài)類(lèi)