Each editor has its supporters and its detractors. Learn them all and decide for yourself.
cd ~/private/cs400/programs/practice/
pico MyProgram.java
emacs MyProgram.java
vi MyProgram.javaYou will need to learn about modes to use vi - here's a tutorial to help you get started. Or, google vi tutorial to find many more.
Java programs must be compiled and linked before they can be run.
javac *.java java MyProgram 10 5 2
The example above will compile all *.java files in the current directory and then run the main method of the MyProgram class, and pass in three command-line arguments "10 5 2". If there is no MyProgram class, or it does not have a main method, an error occurs.