|
Your Very First Program!
|
Here is a very simple program:
| |
After compiling and running it, it would simply display:
At first glance, this program may look like gibberish to you. But don't you worry - later in this book you will learn what each and every line means. For now, the important lines are lines 8, 10 and 12:
Lines 1 and 2 are just comments for a person reading the program. Lines 3 and 5 are required by the Java Compiler and the Java Virtual Machine; every program must have these lines, with minor variations; we will not bother discussing them now, but their meaning will be described later. |
Home Overview Outline About the Author Members Download Contact Us