Referencing non-final variable: why does this code compile?

前端 未结 4 1325
被撕碎了的回忆
被撕碎了的回忆 2021-02-12 03:39

First off, I apologise if this is a duplicate question. I found many similar ones, but none that directly address my question.

In preparation for an upcoming exam, I am

4条回答
  •  臣服心动
    2021-02-12 04:19

    Seems that your Eclipse IDE uses Java 7 compiler. To change this to Java 8 use Project->Properties->Java Compiler->Compiler compliance level.

提交回复
热议问题