Java Syntax
In the previous chapter, we created a Java file called Main.java
, and we used the following code to print “Hello World” to the screen:
Main.java
public class Main { public static void main(String[] args) { System.out.println("Hello World"); } }