Compiling and Running Programs

1.
Open command prompt or shell

2.
Change directories to directory where the .java file you want to compile is stored by typing cd.

3.
To compile: javac myClass.java

4.
To run: java myClass

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.198.59