MainExample
-- a simple class with a
main
method used to start a Java Virtual Machine.
To see this example in action:
Compile the Java source file, MainExample.java:
javac MainExample.java
Run the class with suitable arguments:
java MainExample argyle baldric corral delirium
Output:
4
The source.