Probably a noob question.


Joined
Feb 3, 2020
Messages
1
Reaction score
0
Why can't I run this program? There is no green playbutton, I am new to coding and I couldn't figure out the problem, hopefully it's not something quite obvious. Thanks in advance
upload_2020-2-3_22-42-21.png
 

Attachments

  • CODING.PNG
    CODING.PNG
    515.2 KB · Views: 62
Ad

Advertisements

Joined
Apr 25, 2017
Messages
172
Reaction score
23
You miss a static there in your main method.
Java:
public static void main(String args[]){
     // your code
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top