I try to use the following code:
ArrayList
Map
Eclipse complains about both of them: Syntax Error, para
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