Formatting

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

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

Then, when there is a } everything is "de-dented" one level.

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.

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

And not like this.

public class Main 
    {
    public static void main(String[] args) 
            {
        System.out.println("Hello, World!");
            }
    }

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