No enclosing instance of type Test_02_1 is accessible. Must qualify the allocation with an enclosing
来源:互联网 发布:mac 模拟城市4 秘籍 编辑:程序博客网 时间:2024/05/16 05:21
main是Test_02_1类的static方法,按照常理它只能访问Test类中static资源,而class A是非static所以报错了。解决方法很简单,给class A添加static属性就可以了。
static class A{}
阅读全文
0 0
- No enclosing instance of type Test_02_1 is accessible. Must qualify the allocation with an enclosing
- - No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosing in
- No enclosing instance of type Monster is accessible. Must qualify the allocation with an enclosing i
- No enclosing instance of type ChuangKou is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type X is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type X is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosing inst
- No enclosing instance of type Outer is accessible. Must qualify the allocation with an enclosing ins
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing insta
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type * is accessible. Must qualify the allocation with an enclosing instanc
- svn
- 蓝桥杯 基础练习 杨辉三角形
- MYC归来(2)第三次测试
- Linux下的tar压缩解压缩命令详解
- Java 工程师转型 AI 的秘密法宝——深度学习框架 Deeplearning4j | 回顾
- No enclosing instance of type Test_02_1 is accessible. Must qualify the allocation with an enclosing
- 习题7.1
- 分享一波关于做 Kaggle 比赛,Jdata,天池的经验,看完我这篇就够了。
- 聚中美顶尖研发力量,这是一份硅谷最强阵容的自动驾驶名单 | GAIR 硅谷智能驾驶峰会
- Python 轻量级爬虫
- Navicat8注册码+mysql配置
- audio track
- 风投界的宠儿——IT
- 【版本管理】Git push与pull的默认行为