Formatting

You may have noticed that after each { all the code that comes after it is "indented" in one "level."

void main() {
    System.out.println("Hello, World!");
}

I will kindly ask that you try to stick to this rule when writing your own code as well. If you try to find help online and you haven't, it will be hard for people to read your code.

This is easier to show than to explain in detail. Just try to make your code look like this.

void main() {
    System.out.println("Hello, World!");
}

And not like this.

void main()
{
System.out.println("Hello, World!");}

And keep in mind that this rule of thumb applies to every language construct that requires a { and } many of which I will introduce later.