Java出现No enclosing instance of type E is accessible问题解决
来源:互联网 发布:皮书包知乎 编辑:程序博客网 时间:2024/06/07 02:22
以前在学校的时候我是不喜欢学习Java,但是现在没有办法,因为工作需要,必须要学习Java。
在此之前,我以为学习Java很简单,其实不然,今天就遇到一个最基础的问题,报错信息:
No enclosing instance of type DirList is accessible. Must qualify the allocation with an enclosing
instance of type DirList (e.g. x.new A() where x is an instance of DirList).
在这个问题上各种修改,还是不行,最后百度解决问题。
由于内部类是动态的, 在外面类中的main方法是静态的,因此出现报错信息,
真是觉得自己就是一个小菜鸟,还需努力。。。。
0 0
- Java出现No enclosing instance of type E is accessible
- Java出现No enclosing instance of type E is accessible问题解决
- Java出现No enclosing instance of type E is accessible. Must qualify the allocatio
- Java出现No enclosing instance of type E is accessible 错误
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- 慕课网3.2 Collection接口 List 接口 Set接口 Map接口
- VC中使用XML
- nyoj 79 拦截导弹 (LIS)
- Tomcat java.lang.OutOfMemoryError: PermGen space及其解决方法
- iOS开发之应用程序
- Java出现No enclosing instance of type E is accessible问题解决
- QT: :QWheelEvent
- 热更新lua语法
- python之迷你版Httpd服务器
- 关于坐标系和投影的相关知识探讨
- proxy_set_header设置Host为$proxy_host,$host与$local_host的区别
- 新的时代已经被定义,你定义好了自己的教育了吗?
- 运行时-二
- JS打乱数组最高效的方法