Java can't find method main

后端 未结 7 2010
孤街浪徒
孤街浪徒 2021-01-20 10:45

Im having trouble with a simple hello world program lol! Im hoping someone can shed some light on this.

So the error im receiving is the following:

$         


        
7条回答
  •  花落未央
    2021-01-20 11:37

    You forgot to put the array syntax, You can even use varargs as per JAVA 1.5

    public static void main(String... argv)
    

提交回复
热议问题