Java can't find method main

后端 未结 7 2007
孤街浪徒
孤街浪徒 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:39

    public static void main(String[] args)
    public static void main(String... args)
    public static void main(String args[])
    

    Java programs start executing at the main method, which has the above method prototype

提交回复
热议问题