user710818
user710818

Reputation: 24288

Why IntelliJ displays error in simple java programm?

I run IntelliJ. Simple project and received println in red.

package test;

public class Main {

public static void main(String[] args) {
    System.out.println("Console is.");
 }
}

Error:

Cannot resolve method 'println'...

I have checked that in module setting JDK is. What another I should check? Thanks.

Upvotes: 0

Views: 477

Answers (1)

user710818
user710818

Reputation: 24288

I needed to re-start IntelliJ after installing it.

Upvotes: 1

Related Questions