Unable to run Java code with Intellij IDEA

后端 未结 12 2488
说谎
说谎 2020-12-14 05:18

I have just downloaded the IDE, and I want to edit my first Java file with it, I\'m not interested in creating a whole project, just editing the single file.

So I op

12条回答
  •  心在旅途
    2020-12-14 05:52

    Don't forget the String[] args in your main method. Otherwise, there's no option to run your program:

    public static void main(String[] args) {
    
    }
    

提交回复
热议问题