Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing

静态方法不能调用动态方法,可以在动态类,动态方法中添加static使其变为静态。

 

posted @ 2013-08-26 13:22  Iamsnail  阅读(214)  评论(0编辑  收藏  举报