会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
洞玄巅峰
持续搬砖,职业吹牛。
博客园
首页
新随笔
联系
订阅
管理
2017年6月16日
No enclosing instance of type TestGson is accessible. Must qualify the allocation with an enclosing instance of type TestGson (e.g. x.new A() where x is an instance of TestGson).
摘要: main方法中实例化内部类报错: public class TestGson { public static void main(String[] args) { Gson gson=new Gson(); TestGson testgson=new TestGson(); Student stud
阅读全文
posted @ 2017-06-16 14:18 洞玄巅峰
阅读(348)
评论(2)
推荐(0)