Java can't find method main

后端 未结 7 2012
孤街浪徒
孤街浪徒 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条回答
  •  梦毁少年i
    2021-01-20 11:23

    Your main method signature is wrong String instead of String []

    use

    public static void main(String[] argv)
    

    or

    public static void main(String... argv)
    

    read here

提交回复
热议问题