Run icon is disabled so I cannot run or test it before submitting for verification. Does anyone have idea how to activate run icon?
I cannot run the code on IntelliJ
You must be signed in to leave a comment
29 January 2020, 17:25
It's hard to see, but there doesn't look like there is a main method in that code. Without public static void main() there would be no entry point to start the program.
29 January 2020, 17:29
If that is that is one of the "Games" tasks, the main() method is in an included library. Just follow the task requirements.
29 January 2020, 17:54
Sorry for low resolution image. It's not just "Games" tasks, but I don't have active run icon in every tasks so far, which includes main() method. So I had to copy the code from IntelliJ to website and run it before clicking verifying button - of course I can just click verifying button without running it but I hope to see it running.
29 January 2020, 18:19
Once again, hard to see, but it looks like all the classes on the left have squiggly lines. Go to one of the classes and click one of the import statements and hit alt+enter. "setup jdk" should be an option, select whatever jdk you have and this should resolve the problem. If you don't have the jdk then you will have to download the current one from the oracle website.
29 January 2020, 18:20
And if that is not the case, select a task that has the main method. Right click inside the method and select "Run Solution.main()".
29 January 2020, 18:23
Other than that I don't know. You may be able to find help through google.