1. 首页
  2. 数据库
  3. 其它
  4. Java解决No enclosing instance of type PrintListFromTailToHead is accessible问题的两种方案

Java解决No enclosing instance of type PrintListFromTailToHead is accessible问题的两种方案

上传者: 2020-12-23 06:05:58上传 PDF文件 32.91KB 热度 11次

ListNode内部类是动态的内部类,而我的main方法是static静态的。将内部类ListNode定义成静态static的类。

下载地址
用户评论