Trying to Get Started...
Answered
Hi!
I'm a Java-newbie migrating from NetBeans to IntelliJ Idea and having problems.
Why does IntelliJ give me this error note when I'm trying to do a simple "Hello World!" print? It says: class or interface expected.

Please sign in to leave a comment.
Hello Jukka,
Please place caret on "Hello world", press Alt+Enter and select "Un-inject Language/Reference"
Thanks, it worked! What is that, anyway, and do I have to do that every time I create a new file/class?
Jukka,
It's a "Language Injection" feature: https://www.jetbrains.com/help/idea/using-language-injections.html
By default it should be disabled for java files.