1
00:00:00,780 --> 00:00:07,890
As you can see here here I said that if the value of this face value it is equal to number one then

2
00:00:07,890 --> 00:00:12,650
go inside of these curly braces and execute this line of code here he the number of on.

3
00:00:12,660 --> 00:00:17,680
So here I am actually referring to the name of this text view the x number one.

4
00:00:17,880 --> 00:00:19,580
OK Dot said.

5
00:00:19,580 --> 00:00:24,550
So you want to actually output some text to that text view OK occurrence.

6
00:00:24,680 --> 00:00:28,990
So here this is the name of our R.A. Dickey that we actually created here.

7
00:00:29,030 --> 00:00:29,810
OK.

8
00:00:30,360 --> 00:00:32,220
Occurrence sup face now.

9
00:00:32,280 --> 00:00:37,400
So for example the value of the space is number one and then it's going to go inside of this array.

10
00:00:37,470 --> 00:00:38,510
OK.

11
00:00:38,980 --> 00:00:44,130
And it is going to find the value that is inside of the index number one.

12
00:00:44,250 --> 00:00:44,810
OK.

13
00:00:45,000 --> 00:00:47,690
And then it's going to outwits that value to the screen.

14
00:00:47,760 --> 00:00:53,700
So here remember that we actually created a for loop and here you are actually manipulating the values

15
00:00:54,030 --> 00:00:56,030
that are actually inside of that.

16
00:00:56,190 --> 00:01:04,050
OK here I am saying that go inside of the round not index and increment the value that is inside of

17
00:01:04,050 --> 00:01:04,680
that index.

18
00:01:04,680 --> 00:01:11,480
OK so now let's actually run our project and see what happens.

19
00:01:11,490 --> 00:01:16,230
So here as you can see our application is actually running on this emulator.

20
00:01:16,290 --> 00:01:19,630
So now let's actually click on this or roll the dice button here.

21
00:01:21,310 --> 00:01:27,300
As you can see now it's going to take some time in order to actually perform some complex calculations.

22
00:01:27,490 --> 00:01:27,880
OK.

23
00:01:27,880 --> 00:01:32,110
It's going to actually execute this for a loop here as you can see.

24
00:01:32,110 --> 00:01:34,180
So now this is the value that we can see here.

25
00:01:34,210 --> 00:01:34,710
OK.

26
00:01:34,710 --> 00:01:37,910
If this number of times this value is actually shown here.

27
00:01:37,960 --> 00:01:38,400
OK.

28
00:01:38,470 --> 00:01:44,110
So we can see that the value that is inside of the index number one is this number of types.

29
00:01:44,110 --> 00:01:44,420
OK.

30
00:01:44,470 --> 00:01:51,280
Is this why do you keep the value that is inside of the index number of one of these Aure is this value.

31
00:01:51,520 --> 00:01:52,350
OK.

32
00:01:52,900 --> 00:01:54,140
So hopefully that makes sense.

33
00:01:54,210 --> 00:02:00,390
This actually create other statements here if face is equal to number two.

34
00:02:00,820 --> 00:02:04,750
OK here I can just say Pontiac's the dice.

35
00:02:04,750 --> 00:02:08,420
Number two that Septic's occurrence.

36
00:02:08,870 --> 00:02:09,300
OK.

37
00:02:09,400 --> 00:02:15,080
So up face now plus two double quotes.

38
00:02:15,100 --> 00:02:15,610
OK.

39
00:02:15,820 --> 00:02:21,520
If I can just type in face is equal to number free

40
00:02:24,340 --> 00:02:26,370
DXi number free.

41
00:02:26,440 --> 00:02:40,520
That said text occurrence sup face now plus two double quotes if face for Islam is equal to number four.

42
00:02:41,010 --> 00:02:42,310
OK.

43
00:02:43,040 --> 00:02:46,530
Takes the number four takes the dice.

44
00:02:46,540 --> 00:02:50,440
Number four Dart said text occurrence.

45
00:02:50,500 --> 00:03:04,620
Face Nahm plus two double quotes if face is equal to number five takes the number five takes the dice

46
00:03:04,630 --> 00:03:05,340
number five.

47
00:03:05,350 --> 00:03:19,410
That said text occurrence face Nahm plus two double quotes if face is equal to number six status.

48
00:03:19,450 --> 00:03:20,400
Number six.

49
00:03:20,410 --> 00:03:28,630
That said text occurrence face Naam plus two double quotes.

50
00:03:28,630 --> 00:03:32,550
So now let's actually on our project and see what happens.

51
00:03:32,560 --> 00:03:36,870
So here as you can see our application is actually running on this emulator.

52
00:03:36,970 --> 00:03:39,210
So now let's actually click on the spot in here.

53
00:03:39,250 --> 00:03:40,820
Roll the dice.

54
00:03:40,870 --> 00:03:47,080
So now again this can actually take some time in order to actually perform these accurately complex

55
00:03:47,080 --> 00:03:50,150
calculations it can actually execute this for loop.

56
00:03:50,170 --> 00:03:52,540
So here as you can see we can see these values.

57
00:03:52,630 --> 00:03:59,200
Ok the value that is inside of this index number of one of these are right is this value number 2 and

58
00:03:59,200 --> 00:03:59,880
so on.

59
00:04:00,020 --> 00:04:03,720
OK so hopefully that makes sense.

60
00:04:04,070 --> 00:04:09,760
And let's actually go back and say this main activity double file here and let's actually comment out

61
00:04:09,820 --> 00:04:12,050
this if statements here.

62
00:04:12,450 --> 00:04:15,890
Let's actually use switch statements here.

63
00:04:16,200 --> 00:04:18,060
Switch OK.

64
00:04:18,490 --> 00:04:20,860
Face numb OK.

65
00:04:21,430 --> 00:04:28,030
Here I am actually using the switch statement in order to actually output the correct values to the

66
00:04:28,720 --> 00:04:29,110
screen.

67
00:04:29,110 --> 00:04:34,130
OK so this time I am saying that switch between the values of these face value.

68
00:04:34,200 --> 00:04:39,780
OK so now here I can just type in case number one colon.

69
00:04:39,880 --> 00:04:49,140
OK if the value of these face no valuable is number 1 OK DX the dice number 1 that set text.

70
00:04:49,160 --> 00:04:57,640
Ok occurrence sup face numb OK plus two double quotes OK and then break.

71
00:04:58,360 --> 00:05:02,150
So now let's actually run our project and see what happens.

72
00:05:02,150 --> 00:05:04,130
OK so now click on this.

73
00:05:04,150 --> 00:05:11,160
Roll the dice button here and now again it can actually perform some complex calculations.

74
00:05:11,170 --> 00:05:12,880
So now we can see this value here.

75
00:05:12,880 --> 00:05:13,350
OK.

76
00:05:13,510 --> 00:05:19,660
As you can see this value is the value that is inside of the index number of one of these arii.

77
00:05:19,670 --> 00:05:21,940
OK of this occurrence.

78
00:05:22,060 --> 00:05:30,220
OK so now I can just put the other cases here so I can just type in case number two colon takes the

79
00:05:30,460 --> 00:05:32,620
dose number two.

80
00:05:32,710 --> 00:05:41,560
That said text occurrence sup face Nahm plus two double quotes break.

81
00:05:42,040 --> 00:05:42,570
OK.

82
00:05:42,670 --> 00:05:58,030
Case number 3 colon DX the dice number free dot Septic's occurrence sup the face numb OK plus two double

83
00:05:58,030 --> 00:05:59,660
quotes.

84
00:05:59,920 --> 00:06:02,050
Break OK.

85
00:06:02,460 --> 00:06:18,390
Case number 4 colon DX the dice number for that Septic's occurrence sup face Nahm plus two double quotes.

86
00:06:18,560 --> 00:06:33,510
Break case number five colon DX the dose number five that said text occurrence face Nahm plus two double

87
00:06:33,510 --> 00:06:35,020
quotes.

88
00:06:35,040 --> 00:06:36,430
Break.

89
00:06:37,380 --> 00:06:40,080
Case number six.

90
00:06:40,080 --> 00:06:44,590
Colon takes the dose number six.

91
00:06:44,610 --> 00:06:47,770
That said text occurrence.

92
00:06:48,170 --> 00:06:49,720
Sup face.

93
00:06:50,220 --> 00:06:55,430
Plus two double quotes OK and break.

94
00:06:55,980 --> 00:07:00,210
So nounless actually run our project and see what happens.

95
00:07:00,600 --> 00:07:04,440
OK now as you can see our application is actually running on this emulator.

96
00:07:04,440 --> 00:07:06,000
So now let's actually click on this.

97
00:07:05,990 --> 00:07:13,470
Roll the dice button here and again it can actually take some time in order to actually execute this

98
00:07:13,470 --> 00:07:15,510
for loop 5 million times.

99
00:07:15,510 --> 00:07:17,430
So it's actually taking some time.

100
00:07:18,060 --> 00:07:20,190
And then we need to actually wait.

101
00:07:20,700 --> 00:07:23,090
And here we can see the values here.

102
00:07:23,240 --> 00:07:26,980
OK so hopefully that makes sense.

103
00:07:27,300 --> 00:07:30,600
Let's actually go back and say this main activity that will fight here.

104
00:07:30,600 --> 00:07:31,400
Main activity.

105
00:07:31,440 --> 00:07:32,340
Double file here.

106
00:07:32,350 --> 00:07:40,410
And let's actually comment out this switch statement here and here I am trying to use encapsulation

107
00:07:40,890 --> 00:07:44,060
in order to actually output those values to the screen.

108
00:07:44,060 --> 00:07:47,930
OK so now let's actually create a method here.

109
00:07:47,940 --> 00:07:49,370
OK so.

110
00:07:49,440 --> 00:07:52,860
So the access modifier of this method is private.

111
00:07:52,860 --> 00:07:53,850
Private.

112
00:07:54,160 --> 00:07:54,530
OK.

113
00:07:54,630 --> 00:07:56,340
And this nymphet returns nothing.

114
00:07:56,370 --> 00:08:01,850
So void the return value of the second if it is void and the name of this method is.

115
00:08:01,920 --> 00:08:10,720
Put the right value to the textfield.

116
00:08:11,520 --> 00:08:16,360
OK and here I want to actually specify some arguments for this method.

117
00:08:16,640 --> 00:08:22,220
So here inside Apprentice's I want to actually specify that this Smurfette is going to accept accept

118
00:08:22,340 --> 00:08:23,050
arguments.

119
00:08:23,070 --> 00:08:28,310
OK so the first argument that this pervert is going to accept is of type.

120
00:08:28,310 --> 00:08:34,820
Takes few takes a view and the name of this argument is for example TXI the dice

121
00:08:37,980 --> 00:08:43,790
take the second argument that this nymphet is going to I said is actually an array of integers.

122
00:08:44,200 --> 00:08:52,300
So here I can't just type in it a pair of brackets and the name of this Aure is for example occurrence

123
00:08:54,150 --> 00:08:55,350
OK come on.

124
00:08:55,620 --> 00:08:56,470
OK.

125
00:08:56,910 --> 00:09:02,670
And here again I want to actually specify the index of this arii.

126
00:09:02,700 --> 00:09:06,640
So it index OK.

127
00:09:06,870 --> 00:09:11,640
And then I need to actually open and close this benefit by using these curly braces.

128
00:09:11,730 --> 00:09:18,270
And here I can't just hoping to 60 dice number here I am referring to the name of the stakes the argument

129
00:09:18,600 --> 00:09:21,150
that said text.

130
00:09:21,150 --> 00:09:25,080
And here I can just refer to the name of this array occurrence.

131
00:09:25,410 --> 00:09:25,950
OK.

132
00:09:26,170 --> 00:09:27,980
Sup index.

133
00:09:28,830 --> 00:09:29,500
OK.

134
00:09:29,640 --> 00:09:32,040
Plus two double quotes here.

135
00:09:32,040 --> 00:09:34,940
I am actually referring to the name of this argument occurrence.

136
00:09:35,010 --> 00:09:35,990
Sub index.

137
00:09:36,090 --> 00:09:42,900
OK so here is say that this uncle my friend I can actually create another so each statement face numb.

138
00:09:43,470 --> 00:09:44,000
OK.

139
00:09:44,370 --> 00:09:49,370
And then I can actually open and close the switch statement by use by using these curly braces.

140
00:09:49,650 --> 00:09:58,300
And here I can't just type in case one if the value of this face nobody above is actually one.

141
00:09:58,460 --> 00:09:58,740
OK.

142
00:09:58,740 --> 00:10:01,630
Put the right value to the text.

143
00:10:01,770 --> 00:10:05,640
So here I need to actually specify free arguments for this if it.

