Eclipse: Syntax Error, parameterized types are only if source level is 1.5

后端 未结 17 1817
清酒与你
清酒与你 2020-12-13 01:55

I try to use the following code:

ArrayList
Map

Eclipse complains about both of them: Syntax Error, para

17条回答
  •  北海茫月
    2020-12-13 02:25

    Do the following..

    Right-click on your project--> select properties-----> select Java Compilers

    You wills see this window

    Image for reference

    Now check the checkbox ---> enable project specific settings.

    Now set the compiler compliance level to 1.6

    Apply then Ok

    now clean your project and you are good to go

提交回复
热议问题