November 2025
Intermediate to advanced
736 pages
21h 29m
English
At this point, you should have successfully installed the JDK and executed the sample programs from Chapter 2. It’s time to start programming. This chapter shows you how the basic programming concepts such as data types, branches, and loops are implemented in Java.
Let’s look more closely at one of the simplest Java programs you can have—one that merely prints a message to console:
void main() {
IO.println("We will not use 'Hello, World!'");
}
First and foremost, Java is case sensitive. If you made any mistakes in capitalization (such as typing Main instead of main), the program will not run.
The program declares a method called main. The term “method” is ...
Read now
Unlock full access