If you check the compilation error, you can easily understand the issue. Check the syntax of method defination..
Type: Posts; User: Sambit
If you check the compilation error, you can easily understand the issue. Check the syntax of method defination..
Yes, import statements are not required for this.
Sorry, I missed that. it has to println() method and import is missing.
As per the above comment by KevinWorkman, if path is set correctly then you java program will execute successfully. Post here if you find any further issues.
If you are running this program from command prompt, please can you type commands "javac" and "java" and check if its showing some output?