OK.
So let's actually test other classes again.
We need to just right click on these classes run as job application and this time that I actually used
my class actually.
OK.
Again as you can see this is going to show us the high from my last message.
OK.
So let's actually test another class.
You can actually in order to run your application you can click on this play button here.
It's going to show us that actually the high from my class.
But if you want to choose another class or just right click on my project run as an job application
and here I want to choose the card class.
OK.
And click on OK.
And as you can see it's going to show us nothing.
So let's go inside the Carter java file.
As you can see here we've got the car class here and inside the car class we've got the main method.
This is the starting point.
We're actually running our Java codes.
And as you can see here inside the main method there are no statements here.
So that's why we saw nothing when we actually wanted to execute the statements inside this method.
OK.
So let's actually put in a statement here system that out that Prince Len McKay and inside Apprentice's
I wanna towplane high from car.
OK.
So we need to put in the semi-colon at the end of the statement and let's actually run this class again
like like underclasses project run as job application.
And this time choose car class.
OK.
That's correct.
And as you can see here the console is going to show us the high from car message.
OK.
It's going to actually execute this code here.
Now I want to actually teach you another concept as you can see there is a smart class here.
There is animal class year.
This is the Animal class.
And let's actually run this project again and see what happens.
OK.
As you can see these are the different Java classes that we have created earlier.
OK.
The car class my class and sport class.
But where is the Atom class.
OK so let's actually see what's happening here.
There is no main method.
Inside the Animal class but there is a main method inside the car class.
There is a main effort inside my class and there is also a main Inside Sport class.
OK.
Now let's actually declare our main event inside the Animal class and see what happens.
OK.
Public static void main and inside Apprentice's stream through the chapiter as brackets and arcs.
OK.
And then we need to open and close our main effort.
OK so I'm not going to actually put any statements here.
So let's actually run this project again and see what happens.
Ran as job application.
So as you can see here there is a there's an Animal class here.
So now we understand that if we don't create if we actually don't declare a main of it in our class.
Java won't allow us to run our class.
OK.
Actually no statements will be executed.
OK.
If you actually don't declare our main method in inside the class.
So thanks for watching.
I think that's enough for this tutorial.
I'll see you in the next tutorial.