1
00:00:00,290 --> 00:00:00,990
OK.

2
00:00:01,250 --> 00:00:05,600
So let's actually test other classes again.

3
00:00:05,630 --> 00:00:12,410
We need to just right click on these classes run as job application and this time that I actually used

4
00:00:12,410 --> 00:00:14,310
my class actually.

5
00:00:14,330 --> 00:00:14,960
OK.

6
00:00:15,110 --> 00:00:19,580
Again as you can see this is going to show us the high from my last message.

7
00:00:19,610 --> 00:00:20,650
OK.

8
00:00:21,230 --> 00:00:23,730
So let's actually test another class.

9
00:00:23,870 --> 00:00:29,890
You can actually in order to run your application you can click on this play button here.

10
00:00:30,020 --> 00:00:33,010
It's going to show us that actually the high from my class.

11
00:00:33,020 --> 00:00:39,980
But if you want to choose another class or just right click on my project run as an job application

12
00:00:40,670 --> 00:00:43,420
and here I want to choose the card class.

13
00:00:43,430 --> 00:00:44,090
OK.

14
00:00:44,310 --> 00:00:46,040
And click on OK.

15
00:00:46,310 --> 00:00:48,670
And as you can see it's going to show us nothing.

16
00:00:48,680 --> 00:00:52,070
So let's go inside the Carter java file.

17
00:00:52,640 --> 00:00:58,580
As you can see here we've got the car class here and inside the car class we've got the main method.

18
00:00:58,580 --> 00:00:59,980
This is the starting point.

19
00:00:59,980 --> 00:01:03,920
We're actually running our Java codes.

20
00:01:04,090 --> 00:01:09,340
And as you can see here inside the main method there are no statements here.

21
00:01:09,400 --> 00:01:16,700
So that's why we saw nothing when we actually wanted to execute the statements inside this method.

22
00:01:16,780 --> 00:01:17,320
OK.

23
00:01:17,470 --> 00:01:26,530
So let's actually put in a statement here system that out that Prince Len McKay and inside Apprentice's

24
00:01:26,560 --> 00:01:31,830
I wanna towplane high from car.

25
00:01:32,560 --> 00:01:33,190
OK.

26
00:01:33,550 --> 00:01:40,390
So we need to put in the semi-colon at the end of the statement and let's actually run this class again

27
00:01:41,030 --> 00:01:46,070
like like underclasses project run as job application.

28
00:01:46,450 --> 00:01:48,500
And this time choose car class.

29
00:01:48,510 --> 00:01:50,230
OK.

30
00:01:50,530 --> 00:01:51,320
OK.

31
00:01:51,340 --> 00:01:52,170
That's correct.

32
00:01:52,270 --> 00:01:58,760
And as you can see here the console is going to show us the high from car message.

33
00:01:58,770 --> 00:01:59,490
OK.

34
00:01:59,950 --> 00:02:03,280
It's going to actually execute this code here.

35
00:02:03,340 --> 00:02:11,910
Now I want to actually teach you another concept as you can see there is a smart class here.

36
00:02:11,980 --> 00:02:13,380
There is animal class year.

37
00:02:13,390 --> 00:02:14,930
This is the Animal class.

38
00:02:15,090 --> 00:02:19,500
And let's actually run this project again and see what happens.

39
00:02:19,900 --> 00:02:20,530
OK.

40
00:02:20,710 --> 00:02:25,740
As you can see these are the different Java classes that we have created earlier.

41
00:02:25,930 --> 00:02:26,470
OK.

42
00:02:26,620 --> 00:02:29,410
The car class my class and sport class.

43
00:02:29,530 --> 00:02:31,730
But where is the Atom class.

44
00:02:32,020 --> 00:02:35,590
OK so let's actually see what's happening here.

45
00:02:35,650 --> 00:02:38,260
There is no main method.

46
00:02:38,620 --> 00:02:43,830
Inside the Animal class but there is a main method inside the car class.

47
00:02:43,840 --> 00:02:49,840
There is a main effort inside my class and there is also a main Inside Sport class.

48
00:02:50,200 --> 00:02:50,980
OK.

49
00:02:51,200 --> 00:02:56,160
Now let's actually declare our main event inside the Animal class and see what happens.

50
00:02:56,200 --> 00:02:56,790
OK.

51
00:02:57,160 --> 00:03:10,950
Public static void main and inside Apprentice's stream through the chapiter as brackets and arcs.

52
00:03:10,960 --> 00:03:11,690
OK.

53
00:03:11,950 --> 00:03:14,690
And then we need to open and close our main effort.

54
00:03:14,740 --> 00:03:19,960
OK so I'm not going to actually put any statements here.

55
00:03:20,170 --> 00:03:24,150
So let's actually run this project again and see what happens.

56
00:03:24,260 --> 00:03:26,720
Ran as job application.

57
00:03:26,800 --> 00:03:30,890
So as you can see here there is a there's an Animal class here.

58
00:03:31,150 --> 00:03:39,640
So now we understand that if we don't create if we actually don't declare a main of it in our class.

59
00:03:39,640 --> 00:03:42,430
Java won't allow us to run our class.

60
00:03:42,490 --> 00:03:43,890
OK.

61
00:03:44,530 --> 00:03:47,450
Actually no statements will be executed.

62
00:03:47,640 --> 00:03:47,910
OK.

63
00:03:47,920 --> 00:03:53,970
If you actually don't declare our main method in inside the class.

64
00:03:53,980 --> 00:03:55,090
So thanks for watching.

65
00:03:55,090 --> 00:03:57,920
I think that's enough for this tutorial.

66
00:03:58,580 --> 00:04:00,570
I'll see you in the next tutorial.

