Skip to content
Why does main have to be a file called
Profile icon

Why do I have to call the main program main. The name of the file is GraphisRunner and it contains the main class and other methods. It works fine in Eclipse.

You are viewing a single comment. View All
Profile icon

The file name HAS to be the class name.
Also, you need brackets defining your class.