1
00:00:00,450 --> 00:00:03,390
The first argument is of type takes view.

2
00:00:03,450 --> 00:00:05,000
So I can't just type anti-X the dice.

3
00:00:05,010 --> 00:00:11,290
Number one comma and the second argument is of type integer array.

4
00:00:11,520 --> 00:00:12,170
OK.

5
00:00:12,390 --> 00:00:16,180
So the name of the array is occurrence comma.

6
00:00:16,650 --> 00:00:19,240
And here we need to actually specify the index.

7
00:00:19,290 --> 00:00:20,470
So the index is.

8
00:00:20,480 --> 00:00:21,230
No.

9
00:00:21,670 --> 00:00:22,130
OK.

10
00:00:22,240 --> 00:00:27,590
Break case 2 colon.

11
00:00:28,060 --> 00:00:28,450
OK.

12
00:00:28,450 --> 00:00:38,300
Put the right value to the text you thinks the DOS number two comma occurrence comma face No.

13
00:00:39,040 --> 00:00:39,700
OK.

14
00:00:39,970 --> 00:00:41,080
Break.

15
00:00:41,800 --> 00:00:43,760
Case number three.

16
00:00:44,380 --> 00:00:55,260
Colon put the right value to the text view takes the dice number free comma occurrence comma face name.

17
00:00:55,980 --> 00:00:56,340
OK.

18
00:00:56,350 --> 00:00:58,240
Break.

19
00:00:58,240 --> 00:01:00,890
Case number four colon.

20
00:01:01,030 --> 00:01:12,640
Put the right value to the text view the dice number for comma occurrence comma face Nahm break.

21
00:01:13,330 --> 00:01:16,350
Case number five colon.

22
00:01:16,570 --> 00:01:30,350
Put the right value to the text view to the extent number five comma comma occurrence come up face Nahm.

23
00:01:30,730 --> 00:01:32,730
OK break.

24
00:01:33,600 --> 00:01:37,570
And Case Number 6.

25
00:01:37,770 --> 00:01:49,360
Colon put the right value to the text through takes the dice number 6 comma occurrence comma face now.

26
00:01:49,520 --> 00:01:50,190
OK.

27
00:01:50,490 --> 00:01:51,600
And pray.

28
00:01:52,170 --> 00:01:56,310
So now let's actually run our project and see what happens.

29
00:01:56,340 --> 00:02:01,200
So here as you can see our application is actually running on this emulator.

30
00:02:01,200 --> 00:02:02,750
So now let's actually click on this.

31
00:02:02,760 --> 00:02:09,080
Roll the dice button here and remember that only click on the spot and once.

32
00:02:09,110 --> 00:02:12,180
Ok if you click on this button.

33
00:02:12,510 --> 00:02:17,280
Actually several times the application is going to actually crash because it is actually performing

34
00:02:17,280 --> 00:02:18,750
some complex calculations.

35
00:02:18,810 --> 00:02:22,420
So here as you can see we can see the values that are actually here.

36
00:02:22,560 --> 00:02:28,150
OK and here we you to use encapsulation.

37
00:02:28,260 --> 00:02:33,330
OK in order to output these values through the screen and this is the preferred way in order to write

38
00:02:33,330 --> 00:02:34,630
your codes in Java.

39
00:02:34,650 --> 00:02:37,710
OK always use encapsulation always.

40
00:02:37,710 --> 00:02:40,340
Actually put your Ancoats in my if it's ok.

41
00:02:40,410 --> 00:02:43,660
Always use methods in order to actually do your job.

42
00:02:43,770 --> 00:02:45,900
Do your specific job in programming.

43
00:02:45,960 --> 00:02:53,370
OK and I think that's enough for this tutorial and if you have any questions please post the discussion

44
00:02:53,370 --> 00:02:58,340
in the course and then I'll do my best to answer all of your questions.

45
00:02:58,410 --> 00:03:01,760
Thank you very much for watching and I'll see you in the next year.

