“variable is accessed from within inner class needs to be declared final” error

前端 未结 2 1475
走了就别回头了
走了就别回头了 2021-01-28 12:29

I\'ve got this error while trying to use a local member of one class in inner class inside. I know that declare it as final will solve the issue but I read that Java 8 should ha

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-28 12:37

    I think you should change your language level from "Project Structure" -> "Module" -> "your project name" -> "Source" -> "Language Level" and set it to 8

提交回复
热议问题