I am new to coding and am learning Java. I wasn't much of a tech guy before all of this so the new path is giving me some trouble. I have installed IntelliJ, Java and its SDK on my Mac and am getting the follow error when attempting to run some practice script. Any help would be appreciated.
You code won't compile because the return statement has error in it. Also if you want to execute code you need to have an entry point, which is main function declared as public static void main(String... arg).
Also, I am not sure why you got the error message. You need to set you 'Run/Debug configuration' settings in IntellijIDEA.
I just changed my code in IntelliJ to the same code that is working on my Windows computer and am still getting the no such file or directory error. I fix what was mentioned above and commented out everything to see if just a System.out.println would work but it is the same error.
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad: