I am getting this error while trying to compile some simple source code in idea ide.
java: diamond operator is not supported in -source 1.6 (use -source 7 or
Check Project Structure tab in IDEA, find the followng navigational path
Project Structure -> Project -> Project SDK
Project Structure
Project
Project SDK