Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

System.out.println("hello") analyze error

$
0
0

Hello there,

 

I use version 14.0.2.  When I write just one line code:

System.out.println("hello");

 

in main static method,

 

Analyze compain that "hello" with "class or interface expected".

 

But it can compile and run well.

 

If I change to

 

System.out.println(new String("hello"));

 

It won't compain the error.

 

What's wrong? Is this a bug?  Thanks for reply in advanced.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>