0

Change Java Language Level in IntelliJ IDEA


Udemy

This post shows how to change Java Language Level in IntelliJ IDEA.

Requirements

Stuff used in this post.

  • IntelliJ IDEA Ultimate 2016.3
  • Java 8
  • Windows 10 Enterprise

Wrong Language Level Example

Consider the following screenshot. On line 26, the IDE provides a clue as to why forEach is not supported. The maven project is initially in Language Level 1.7 .

Change Language Level

To change the Language Level to 8,

  1. Right-click on the project comturretarxjava and choose Open Module Settings
  2. Choose the correct minimum Language Level  that supports Lambda expressions
  3. Click OK

Issue Fixed