- To compile a file :
$ javac MyProgram.java
- To execute a program :
$ java MyProgram
NB : In Java, each file can contain only one public class and the name of the public class must match the file name (caps and all)
Learn Java the Hard Way - https://learnjavathehardway.org/book/
$ javac MyProgram.java
$ java MyProgram
NB : In Java, each file can contain only one public class and the name of the public class must match the file name (caps and all)
Learn Java the Hard Way - https://learnjavathehardway.org/book/