1
00:00:00,690 --> 00:00:06,650
First of all you referred to twice already to a pre-defined class card system in Java.

2
00:00:06,710 --> 00:00:09,790
OK system that are a copy.

3
00:00:10,050 --> 00:00:11,390
OK.

4
00:00:11,400 --> 00:00:17,630
So this Smurfit actually is going to copy another array.

5
00:00:17,840 --> 00:00:18,520
OK.

6
00:00:18,960 --> 00:00:24,870
And we can see now I'm going I should explain how this method actually works.

7
00:00:24,870 --> 00:00:25,570
OK.

8
00:00:25,770 --> 00:00:32,620
The first argument as you can see here this is the first argument to k in teacher at a one OK.

9
00:00:32,970 --> 00:00:35,800
So this first argument is the source.

10
00:00:35,910 --> 00:00:36,450
OK.

11
00:00:36,690 --> 00:00:37,920
So this is our source OK.

12
00:00:38,040 --> 00:00:40,140
This is the area that we want to actually copy.

13
00:00:40,310 --> 00:00:41,090
OK.

14
00:00:41,220 --> 00:00:48,290
The second argument as you can see here is this is this party in position in the source.

15
00:00:48,400 --> 00:00:53,790
OK so this argument here number zero is this starting position.

16
00:00:53,820 --> 00:00:56,700
Ok for example this number 100 here.

17
00:00:56,750 --> 00:00:57,150
OK.

18
00:00:57,270 --> 00:01:00,370
Is this starting position in the source at a.

19
00:01:00,440 --> 00:01:01,730
OK.

20
00:01:01,830 --> 00:01:09,640
And this and this up first argument as you can see here is the destination in which we copy.

21
00:01:09,870 --> 00:01:14,050
OK which is the same as the source in that case.

22
00:01:14,190 --> 00:01:14,680
OK.

23
00:01:14,820 --> 00:01:16,600
As you can see here this is the this.

24
00:01:16,730 --> 00:01:20,590
This is actually the situation if you want to actually copy.

25
00:01:21,160 --> 00:01:22,370
OK.

26
00:01:22,680 --> 00:01:29,880
And this fourth argument as you can see here this number is zero as you can see this is the starting

27
00:01:29,880 --> 00:01:31,970
position in the destination data.

28
00:01:32,240 --> 00:01:35,560
Ok this is our destination data here.

29
00:01:35,760 --> 00:01:38,160
And this is the starting position into this initial data.

30
00:01:38,160 --> 00:01:39,230
Okay.

31
00:01:39,480 --> 00:01:45,990
And here as you can see this last argument here as you can see this final argument is actually the length

32
00:01:46,290 --> 00:01:48,360
of a value you want to copy.

33
00:01:48,360 --> 00:01:55,770
So here we want to actually create another copy of this Aure OK integer add a 1 and this is our copy

34
00:01:55,770 --> 00:01:56,240
integer.

35
00:01:56,330 --> 00:02:02,520
You want copy and discomfort are a copy here that we actually called on this system class as you can

36
00:02:02,520 --> 00:02:03,240
see.

37
00:02:03,350 --> 00:02:05,930
Dude that actually does that job for us.

38
00:02:05,940 --> 00:02:06,500
OK.

39
00:02:06,750 --> 00:02:09,130
So this first argument is the source.

40
00:02:09,180 --> 00:02:12,860
This is the starting position actually in the source Aure.

41
00:02:12,990 --> 00:02:18,300
As you can see here this is or this argument is the destination in which we copy.

42
00:02:18,390 --> 00:02:19,920
OK this is the destination.

43
00:02:20,100 --> 00:02:23,310
So this is our I know that this is indeed a copy.

44
00:02:23,340 --> 00:02:30,300
This is destination situation and this actually is a fourth argument actually is the starting position

45
00:02:30,300 --> 00:02:31,750
in the destination data.

46
00:02:32,560 --> 00:02:36,280
Ok this is this starting position in the destination data.

47
00:02:36,370 --> 00:02:37,500
OK.

48
00:02:38,050 --> 00:02:41,210
And here this is the line of values we want to copy.

49
00:02:41,260 --> 00:02:41,770
OK.

50
00:02:41,770 --> 00:02:46,370
So here in line 49 we want to capture the output this.

51
00:02:46,600 --> 00:02:48,450
These two arrows to the screen.

52
00:02:48,490 --> 00:02:48,840
OK.

53
00:02:48,880 --> 00:02:56,500
So in line 49 I actually called this method here and this actually accepts two arguments and the first

54
00:02:56,560 --> 00:02:58,430
argument is integer add a 1.

55
00:02:58,540 --> 00:02:59,000
OK.

56
00:02:59,110 --> 00:03:02,300
And the second argument is TXI the end of a 1.

57
00:03:02,380 --> 00:03:04,130
And here in line 50.

58
00:03:04,180 --> 00:03:06,650
Again I called this method here.

59
00:03:07,120 --> 00:03:12,860
Output the Aure to the screen integer at a World Cup he takes the end at a word copy.

60
00:03:12,900 --> 00:03:18,700
OK so now let's actually run our project and see what happens.

61
00:03:18,740 --> 00:03:27,440
OK so now as you can see our application is running on this emulator here and this is in a vault here

62
00:03:27,480 --> 00:03:32,050
as you can see so I can actually scroll to the left in order to see the other values.

63
00:03:32,370 --> 00:03:34,280
And this is in every one copy.

64
00:03:34,280 --> 00:03:34,590
OK.

65
00:03:34,590 --> 00:03:40,740
So as you can see here these values are actually the same as these values that are inside of this.

66
00:03:40,830 --> 00:03:42,490
Everyone here OK.

67
00:03:42,600 --> 00:03:45,030
So hopefully that makes sense.

68
00:03:45,360 --> 00:03:52,470
And now let's actually go back inside the main activity of a fight here and let's actually add some

69
00:03:52,620 --> 00:03:54,110
more lines of code here.

70
00:03:54,320 --> 00:03:54,610
OK.

71
00:03:54,640 --> 00:03:56,770
Say that this uncreate Mefford.

72
00:03:56,910 --> 00:04:02,730
So now I'm going to actually pasting some lines of code here and then I'm going to explain to you what's

73
00:04:02,730 --> 00:04:03,500
going on here.

74
00:04:03,510 --> 00:04:04,250
OK.

75
00:04:04,620 --> 00:04:09,770
So as you can see here these are the lines of code that are that I actually paste that here.

76
00:04:09,780 --> 00:04:15,140
First of all in line 54 I created all variable of type Boolean.

77
00:04:15,270 --> 00:04:15,800
OK.

78
00:04:15,960 --> 00:04:17,630
And the name of this variable is.

79
00:04:17,730 --> 00:04:18,700
Is it equal.

80
00:04:18,750 --> 00:04:19,490
OK.

81
00:04:19,920 --> 00:04:26,970
And then here as you can see I actually referred to the name of this phrase class dot equals.

82
00:04:27,150 --> 00:04:34,320
So this Mefford this equals Mivart actually checks of whether the values of two rays are actually the

83
00:04:34,320 --> 00:04:35,370
same or not.

84
00:04:35,370 --> 00:04:37,400
OK are equal or not.

85
00:04:37,410 --> 00:04:45,420
So we want to actually specify whether the values of these integer array 1 are actually equal to the

86
00:04:45,420 --> 00:04:49,320
values that are inside of this integer at one copy or not.

87
00:04:49,340 --> 00:04:58,760
OK so here I called this class I referred to the name of this class phrase that equals integer Arev

88
00:04:58,860 --> 00:05:00,930
on integer array one copy.

89
00:05:01,050 --> 00:05:01,810
OK.

90
00:05:02,310 --> 00:05:07,910
And then in line 55 I referred to the name of this object S-W to equal.

91
00:05:07,920 --> 00:05:14,680
So as you can see here we created this object in line 26 here of this object is actually of type switch.

92
00:05:14,790 --> 00:05:24,360
Ok so it's W.T. that said checked OK and here as you can see which cities are a piece of code here and

93
00:05:24,360 --> 00:05:30,170
here I referred inside the inside of the prentices I referred to the name of these boolean variable.

94
00:05:30,180 --> 00:05:30,670
OK.

95
00:05:30,760 --> 00:05:32,010
Is Equant.

96
00:05:32,060 --> 00:05:41,160
OK so here I am saying that if the value of these is equal variable is true OK then assign the value

97
00:05:41,160 --> 00:05:43,580
true to this set check the method.

98
00:05:43,700 --> 00:05:49,620
Otherwise if the value of this is equal variable is not true.

99
00:05:49,740 --> 00:05:50,530
So it is false.

100
00:05:50,550 --> 00:05:50,990
OK.

101
00:05:51,360 --> 00:05:59,330
If the value of this is equal value but is not true then assign the value false to this set checks method.

102
00:05:59,340 --> 00:05:59,580
OK.

103
00:05:59,580 --> 00:06:06,420
So this piece of code as you can see here this expression here actually returns a value of type Boolean.

104
00:06:06,420 --> 00:06:07,020
OK.

105
00:06:07,350 --> 00:06:12,270
So this piece of code Rutan's may be a false or a true value.

106
00:06:12,270 --> 00:06:12,950
OK.

107
00:06:13,290 --> 00:06:18,360
And here I am saying that if the value of this is equal value and is true.

108
00:06:18,730 --> 00:06:23,080
OK he had this piece of code written that are true or false value but value.

109
00:06:23,310 --> 00:06:26,410
And then it's going to assign that true or false value.

110
00:06:26,420 --> 00:06:28,150
This is equal value.

111
00:06:28,190 --> 00:06:28,780
OK.

112
00:06:28,980 --> 00:06:35,010
And here I am saying that if the value of this is equal value but is true then assign the value true

113
00:06:35,010 --> 00:06:36,500
to this said checked my faith.

114
00:06:36,520 --> 00:06:41,170
Otherwise assigned the value falls to this said checked method.

115
00:06:41,210 --> 00:06:48,350
OK if the value of this is equal value but is natural assign the value false to this set check Moffet.

116
00:06:48,720 --> 00:06:50,870
So hopefully it does make sense.

117
00:06:50,910 --> 00:07:00,060
And in 1956 as you can see here here I want to specify the text of my s w t equal object to k of this

118
00:07:00,390 --> 00:07:01,570
sweet object.

119
00:07:01,590 --> 00:07:05,140
So I just referred to the name to the name of this object.

120
00:07:05,200 --> 00:07:07,660
W.T. equal dot Septic's.

121
00:07:07,710 --> 00:07:08,380
OK.

122
00:07:08,610 --> 00:07:10,080
So here again as you can see.

123
00:07:10,140 --> 00:07:15,550
So here I am saying that if the value of this is equal variable true.

124
00:07:15,780 --> 00:07:22,490
OK if the value of this is equal boolean variable true is true then assign the value.

125
00:07:22,520 --> 00:07:28,320
This takes this distance as you can see inside of these double quotes here.

126
00:07:28,320 --> 00:07:31,300
Then assign this value to the set text here.

127
00:07:31,320 --> 00:07:31,980
As you can see here.

128
00:07:31,980 --> 00:07:32,370
OK.

129
00:07:32,480 --> 00:07:38,400
As scientists value to these set takes a Meffert that is related to this object OK the value of these

130
00:07:38,400 --> 00:07:39,970
arrows are equal.

131
00:07:40,080 --> 00:07:49,100
Otherwise if the value of this is called a boolean variable is not true then assign this value not equal.

132
00:07:49,260 --> 00:07:51,590
Ok this takes this string value.

133
00:07:51,810 --> 00:07:55,550
Then assign this string value to the set text method here.

134
00:07:55,700 --> 00:08:00,830
OK so now let's actually run our project and see what happens.

135
00:08:00,860 --> 00:08:06,180
OK so now as you can see our application is running on this emulator.

136
00:08:06,600 --> 00:08:12,330
And here we can see this text here that says the value the values of these arrays are equal.

137
00:08:12,360 --> 00:08:14,310
And this actually does.

138
00:08:14,330 --> 00:08:16,860
So each object as you can see here is actually the checked on.

139
00:08:16,960 --> 00:08:18,570
OK the value of this.

140
00:08:18,580 --> 00:08:24,330
So each object is actually you now but as you can see here the size of this takes is is actually Aledo

141
00:08:24,840 --> 00:08:25,570
small.

142
00:08:25,800 --> 00:08:29,190
So analysis actually to go back and say this content underline mean that example.

143
00:08:29,340 --> 00:08:37,260
And here I need to click on this clear cache here and now let's actually select this each object here

144
00:08:37,560 --> 00:08:41,440
and let's actually find the text size as attribute as it can see.

145
00:08:41,500 --> 00:08:48,390
This is the text size attribute and here are actually assigned the value for example 20 to this attribute

146
00:08:48,390 --> 00:08:48,960
here.

147
00:08:49,020 --> 00:08:51,680
And if I run my project again let's see what happens.

148
00:08:51,690 --> 00:08:57,780
And now as you can see our application is running on the simulator and we can see this value here the

149
00:08:57,780 --> 00:09:00,820
values of these arrays are equal.

150
00:09:00,870 --> 00:09:01,160
OK.

151
00:09:01,170 --> 00:09:04,980
And the value of this sweet object is actually true.

152
00:09:04,980 --> 00:09:05,490
OK.

153
00:09:05,730 --> 00:09:07,060
This is checked on.

154
00:09:07,140 --> 00:09:07,880
OK.

155
00:09:08,370 --> 00:09:12,990
And now let's actually go back and say this main activity the double file here that's actually a comment

156
00:09:13,050 --> 00:09:16,870
out this line of code here that does that actually.

157
00:09:17,150 --> 00:09:25,700
Copies this intuition at a one here and then it's actually a common line of code here and now let's

158
00:09:25,710 --> 00:09:28,620
actually on our project again and see what happens.

159
00:09:28,620 --> 00:09:35,040
So now as you can see our application is running on this emulator and we can see the values that are

160
00:09:35,040 --> 00:09:37,660
actually inside of these eight out of one copy.

161
00:09:37,710 --> 00:09:38,020
OK.

162
00:09:38,040 --> 00:09:39,800
These are zeroes here.

163
00:09:39,930 --> 00:09:41,490
And it says not equal.

164
00:09:41,490 --> 00:09:41,920
OK.

165
00:09:41,970 --> 00:09:46,360
And the value of the switch object as you can see is of OK.

166
00:09:46,950 --> 00:09:50,810
So hopefully that makes sense that's actually to go back and say this main activity that I will find

167
00:09:50,820 --> 00:09:57,900
here and let's add to the uncomment this line of code here and now I'm going to actually pasting some

168
00:09:57,900 --> 00:10:01,760
more lines of code here and then I'm going to explain to you what's going on here.

169
00:10:01,770 --> 00:10:02,230
OK.

