We create a start method, because we don’t want to work in the main method. That is because it can get messy, if you start in the main method.

INSIDE THE MAIN METHOD

void start () {
}

public static void main (String[] args) { 
	C object = new C();
	object.start(); 
}

Shorter:

void start () {
}

public static void main (String[] args) { 
	new C().start(); 
}

Place

You have to place ALL methods inside the JAVA CLASS!

place main method java

Therefore, besides the main method also the start method:

place start method java

Or if you have more methods, all have to be in the class:

multiple methods java