You all know what a book look like and I will use the structure/organization of a book to illustrate the structure/organization of a (Java) program
|
|
Explanation:
|
|
This practice originates in the C programming language and has been "inherited" by C++ and Java.
|
Example:
|
Because you only have 1 method... so the method must be named main --- (in this case, you have no choice...)
Note:
|
On the next webpage, we will use the above simple program to illustrate some concepts of the Java programming language
How to run the program:
|