How to run a java program

How to run a java program.

you can java program on command prompt by specifying the path of the file.

hey,
are you using eclipse or Command Prompt?

1:install JDK then setups the path.
2:Install vscode editor
3:install java extension.
It is very easy to use and the best editor in all languages.

lots of platform to run java but as per beginner you can use as my opinion text editors ‘sublime text’
advanced: vscode,eclipse,inteli ij, so on

Refer below resource on how to run a java program