1
00:00:00,780 --> 00:00:07,920
And then I need to refer to the name of this valuable face number so it's can actually switch between

2
00:00:07,920 --> 00:00:11,010
the values of this office number variable.

3
00:00:11,070 --> 00:00:17,880
So each time this group is going to be executed this variable is going to have a random number between

4
00:00:18,630 --> 00:00:20,760
number one and number six.

5
00:00:20,760 --> 00:00:21,490
OK.

6
00:00:21,780 --> 00:00:29,680
So inside this inside the curly braces lets actually type in case one.

7
00:00:29,700 --> 00:00:39,540
So this means that in case the value of this Faisalabad rowdier is number one plus plus number one OK

8
00:00:39,690 --> 00:00:47,700
as you can see we created these valuables inside this class and here inside this method I am referring

9
00:00:47,700 --> 00:00:49,220
to the name of those variables.

10
00:00:49,410 --> 00:00:50,100
C++.

11
00:00:50,100 --> 00:00:56,640
Number one means that increment the value of this number one variable and then our return that value

12
00:00:56,640 --> 00:00:57,210
to me.

13
00:00:57,490 --> 00:00:59,370
Okay great.

14
00:01:00,360 --> 00:01:08,520
So if I were to actually write our number one plus plus in this way it is going to actually first of

15
00:01:08,520 --> 00:01:13,730
all return the value of this number one to me and then it's going to increment this value.

16
00:01:13,920 --> 00:01:19,960
So that's not what they wanted I want are this really about the value of this variable be increment.

17
00:01:20,190 --> 00:01:23,960
And then I actually get that value OK or return that value.

18
00:01:23,970 --> 00:01:35,700
OK so Case number two plus plus number to break.

19
00:01:36,870 --> 00:01:37,540
OK.

20
00:01:37,710 --> 00:01:46,940
Case number free plus plus number free semi-colon.

21
00:01:46,960 --> 00:01:48,060
Break.

22
00:01:48,780 --> 00:01:58,660
Case number four plus plus number four.

23
00:01:58,660 --> 00:02:00,010
Break.

24
00:02:00,970 --> 00:02:19,490
Case number five plus plus number five semicolon case number six plus plus number six.

25
00:02:20,200 --> 00:02:21,060
OK great.

26
00:02:21,140 --> 00:02:26,530
So now as you can see our switch statement is ready.

27
00:02:26,810 --> 00:02:33,690
And let's actually after this is ending curly brace of this for loop as you can see here.

28
00:02:33,860 --> 00:02:36,800
Let's actually continue adding our own quotes.

29
00:02:36,890 --> 00:02:40,900
So here just typing takes the number one.

30
00:02:41,030 --> 00:02:48,620
That said Text Number 1 OK plus two double quotes as you can see here.

31
00:02:48,750 --> 00:02:51,830
This variable number one is of type integer.

32
00:02:51,830 --> 00:02:59,510
So in order to put this variable inside these apprentices in order to assign this value to this set

33
00:02:59,510 --> 00:03:03,530
take some effort that is related to this the number number one object.

34
00:03:03,530 --> 00:03:06,270
We need to convert this value to a string value.

35
00:03:06,290 --> 00:03:09,560
OK so itx the number two.

36
00:03:09,740 --> 00:03:20,290
That said text number two plus two double quotes again ticks the number three.

37
00:03:20,540 --> 00:03:38,240
That said text number free plus two double quotes DX the number four that said Text Number four plus

38
00:03:39,190 --> 00:03:53,580
two double quotes the the number five that said Text Number five plus two double quotes 3x the number

39
00:03:53,580 --> 00:03:54,490
six.

40
00:03:54,810 --> 00:03:58,620
That said Text Number Six.

41
00:04:00,100 --> 00:04:06,200
Plus two double quotes and or less actually on our project and see the results.

42
00:04:06,220 --> 00:04:06,730
OK.

43
00:04:06,730 --> 00:04:13,210
Now as you can see here our application is actually running on this emulator and our lets actually click

44
00:04:13,270 --> 00:04:13,680
on this.

45
00:04:13,690 --> 00:04:17,550
Roll the dice button here and lets see what happens.

46
00:04:18,310 --> 00:04:23,920
As you can see here I click on this button here and it can actually take some time in order to calculate

47
00:04:23,980 --> 00:04:26,070
some of those calculations.

48
00:04:26,290 --> 00:04:30,030
And as you can see here now as you can see the results here.

49
00:04:30,040 --> 00:04:30,380
OK.

50
00:04:30,400 --> 00:04:35,230
And this number of times is built into this number one this number of times belongs to this number two

51
00:04:35,320 --> 00:04:36,470
and so on.

52
00:04:36,700 --> 00:04:42,190
OK so I'll talk more about a multi Freydon later in this course.

53
00:04:42,190 --> 00:04:47,660
Nobody wants to wait when their application is actually freezing.

54
00:04:47,800 --> 00:04:52,240
OK and no what no user wants their application to be freezed.

55
00:04:52,330 --> 00:04:56,160
So you need to actually think of a way in order to solve that problem.

56
00:04:56,560 --> 00:05:01,600
But for now remember that whenever that you actually click on the spot and its going to actually take

57
00:05:01,600 --> 00:05:10,130
some time in order to calculate those expressions and then its going to show the results to you.

58
00:05:10,220 --> 00:05:15,850
Blethering discourse I'll talk more about Monday-Friday in and I'll show you how you can make your applications

59
00:05:15,850 --> 00:05:24,850
more dynamic so that your users start to actually see something whenever complex calculations is being

60
00:05:24,850 --> 00:05:31,480
performed so that your users do not find that your application is actually freezing or it has been crashed.

61
00:05:31,480 --> 00:05:32,290
OK.

62
00:05:32,770 --> 00:05:34,450
So hopefully that makes sense.

63
00:05:34,570 --> 00:05:40,420
Let's actually click on the spot and again and again it's going to take some time in order to calculate

64
00:05:40,420 --> 00:05:41,470
those expressions.

65
00:05:41,470 --> 00:05:45,470
So as you can see here again these values changed here.

66
00:05:45,680 --> 00:05:47,410
Let's actually click on this button again.

67
00:05:47,530 --> 00:05:50,580
Now as you can see again it's going to take some time.

68
00:05:50,590 --> 00:05:55,290
So as you can see here now these numbers change again and so on.

69
00:05:55,360 --> 00:05:55,800
OK.

70
00:05:55,870 --> 00:06:01,120
Let's actually go inside this content underline minute example and then let's actually select all of

71
00:06:01,120 --> 00:06:02,430
these are text views.

72
00:06:02,590 --> 00:06:08,980
So if you are using a macro or six you need to hold the command key and then select all of these text

73
00:06:08,980 --> 00:06:09,680
views.

74
00:06:09,880 --> 00:06:15,490
And if you are using a Windows machine you need to actually hold the control key and then select these

75
00:06:15,500 --> 00:06:16,600
text views here.

76
00:06:16,600 --> 00:06:17,260
OK.

77
00:06:17,650 --> 00:06:21,570
And the literature find the gravity attribute or as you can see here.

78
00:06:21,700 --> 00:06:23,440
This is the gravity and tributes.

79
00:06:23,440 --> 00:06:27,790
And let's actually check this check box that says Center underline horizontal.

80
00:06:27,870 --> 00:06:32,050
OK so now let's actually run our project again and see what happens.

81
00:06:32,170 --> 00:06:32,690
OK.

82
00:06:32,770 --> 00:06:37,240
Now as you can see here our application is actually running on this emulator.

83
00:06:37,240 --> 00:06:41,780
So let's actually click on this pattern here that says Roll the dice.

84
00:06:42,430 --> 00:06:48,430
And then as you can see here it is actually taking some time because it's it's going to actually perform

85
00:06:48,430 --> 00:06:51,790
some complex churchie relations as it can.

86
00:06:51,790 --> 00:06:56,770
As you can see here and we need to actually give it a little time so as you can see here these values

87
00:06:56,770 --> 00:06:59,540
are now here and are more readable.

88
00:06:59,740 --> 00:07:00,550
OK.

89
00:07:00,910 --> 00:07:07,630
So let's actually put the pictures of these Tice's here that are actually related to these numbers.

90
00:07:07,630 --> 00:07:07,840
OK.

91
00:07:07,840 --> 00:07:09,730
Number one number two and so on.

92
00:07:09,820 --> 00:07:17,320
So on my desktop I have a folder here inside these are resources folder.

93
00:07:17,500 --> 00:07:19,230
I have these images here.

94
00:07:19,300 --> 00:07:19,980
OK.

95
00:07:20,200 --> 00:07:25,500
So now I want to actually put Actually the copy and paste these images to my project.

96
00:07:25,570 --> 00:07:32,350
So I just need to select those images that I want to actually copy and then I can just hold the command

97
00:07:32,350 --> 00:07:39,310
key and then press on the letter key on my keyboard or I can just right click on them and then choose

98
00:07:39,490 --> 00:07:40,600
Copy 6 items.

99
00:07:40,630 --> 00:07:41,230
OK.

100
00:07:41,680 --> 00:07:49,150
And let's actually go inside our project and then let's actually click on this view tool windows and

101
00:07:49,150 --> 00:07:56,170
then our select project and here select this addressable folder and then you can either hold the command

102
00:07:56,170 --> 00:08:01,300
key if you are using a microwave 6 and if you are using a Windows machine you need to actually hold

103
00:08:01,300 --> 00:08:09,490
the control key OK and then press on the leader key on your keyboard OK and then click on OK.

104
00:08:09,880 --> 00:08:14,760
As you can see here now these pictures are here inside these tribal folder.

105
00:08:14,770 --> 00:08:18,330
So let's actually go back inside this main activity that dogfight here.

106
00:08:19,390 --> 00:08:26,130
And then here inside this unclick Meffert after these lines of code that's actually referred to the

107
00:08:26,140 --> 00:08:30,580
name of our pictures are UMG dice.

108
00:08:30,820 --> 00:08:34,820
Number one that said Image resource.

109
00:08:35,400 --> 00:08:36,120
OK.

110
00:08:36,130 --> 00:08:41,270
Our dot triable dots dice one.

111
00:08:41,740 --> 00:08:42,680
OK.

112
00:08:43,150 --> 00:08:48,320
Again this actually refers to the name of our second image i n g.

113
00:08:48,370 --> 00:08:52,180
Number two that said Image resource.

114
00:08:52,860 --> 00:08:53,720
OK.

115
00:08:54,060 --> 00:08:58,890
Our dot triable that dies

116
00:09:02,640 --> 00:09:14,190
AMG dice number three that sets in resource are that Dr. Bell that is free.

117
00:09:16,700 --> 00:09:34,580
IMT dice number four that said Image resource are that triable that dies for AMG dice.

118
00:09:34,730 --> 00:09:48,230
Number five that said what image resource are that triable that dies for life.

119
00:09:49,130 --> 00:09:52,980
And I m g dice number six.

120
00:09:53,030 --> 00:09:55,120
That said a resource.

121
00:09:55,150 --> 00:10:00,960
OK are that triable that dice 6.

122
00:10:00,980 --> 00:10:05,100
So now as you can see these names are the names of our pictures.

123
00:10:05,200 --> 00:10:05,470
OK.

124
00:10:05,480 --> 00:10:12,620
As you can see here these pictures have names and we can actually refer to these names by actually referring

125
00:10:12,620 --> 00:10:15,330
to this class are that triable.

126
00:10:15,350 --> 00:10:20,520
This is the tribal folder and the picture that is inside of this tribal for that.

