会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
对酒当歌,人生几何?!
博客园
首页
新随笔
联系
订阅
管理
2016年3月31日
【eclipse】No enclosing instance of type A is accessible. Must qualify the allocation with an enclosing instance of type A
摘要: 用 eclipse 写 Java 代码时出现了这个问题,详细如下: 其中 A 为类名。 原因:原来是静态方法中不能创建动态内部类的对象。 解决方法:将类改为 static, 或将方法改为非静态的。 参考:http://blog.csdn.net/sunny2038/article/details/6
阅读全文
posted @ 2016-03-31 16:38 WriteOnRead
阅读(1047)
评论(0)
推荐(0)
编辑
公告