然后發(fā)現(xiàn)如果重新建一個類,把Actress這個接口寫進(jìn)去就正確了。求解
2014-12-01
Thread actress = new Thread(new Actress(),"Ms.Runnable");
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).
這個錯誤是什么意思呢?
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).
這個錯誤是什么意思呢?
2014-12-01
旗標(biāo)和interrupt聯(lián)合使用,解決滿負(fù)載阻塞隊列中,旗標(biāo)帶來的無限等待的問題,同時整潔的處理死亡的線程。
2014-11-27
volatile使變量可及, .join()讓線程等待。這兩個是本例子中的關(guān)鍵詞呢
2014-11-24