1
00:00:00,150 --> 00:00:03,030
So let's actually output this value to the like.

2
00:00:03,030 --> 00:00:06,830
So here I can just type in luck that are.

3
00:00:07,020 --> 00:00:15,420
And here I need to actually put into double quotes l o g v the capital letters comma integer numbers

4
00:00:15,750 --> 00:00:22,500
index zero plus two double quotes in order to actually convert this value to our strong values as you

5
00:00:22,500 --> 00:00:28,630
can see here this value here integer numbers index 0 is going to give me of an integer number.

6
00:00:28,710 --> 00:00:32,790
OK so I need to convert that value to a string value.

7
00:00:32,910 --> 00:00:37,840
And here we are saying that give me the value that is inside of the index 0.

8
00:00:37,980 --> 00:00:40,500
So let's actually do our project and see what happens.

9
00:00:40,500 --> 00:00:43,910
So as you can see here now our application is actually running.

10
00:00:44,100 --> 00:00:50,520
And here inside is our luck level section choose info and inside of the search bar just type in here

11
00:00:50,580 --> 00:00:52,530
L O G capital letters.

12
00:00:52,530 --> 00:00:52,960
OK.

13
00:00:53,070 --> 00:00:57,870
So as you can see here we have this number 24 here.

14
00:00:57,870 --> 00:01:03,910
So let me actually make this like area wider as you can see this is our number 24.

15
00:01:04,120 --> 00:01:04,540
OK.

16
00:01:04,560 --> 00:01:10,980
So this is the value that is inside of the index zero of these Arey of these integer numbers.

17
00:01:11,010 --> 00:01:12,460
So let me actually.

18
00:01:12,600 --> 00:01:16,280
So then you actually out with the value that is inside of the index one.

19
00:01:16,370 --> 00:01:16,960
OK.

20
00:01:17,100 --> 00:01:19,460
So I just need to type in here like that.

21
00:01:20,320 --> 00:01:27,250
And then to double quotes at O.G. comma integer numbers index for example 1.

22
00:01:27,330 --> 00:01:32,490
Let's let's actually run our project again and here instead of this lark we can't see the values.

23
00:01:32,520 --> 00:01:36,710
So as you can see here it outputted number 0 to the log.

24
00:01:36,750 --> 00:01:37,250
OK.

25
00:01:37,470 --> 00:01:44,320
So now we can understand that the indexes of array by default has half the value zero within them.

26
00:01:44,540 --> 00:01:51,030
OK because we didn't assign any value to the index number of one of these integer numbers it is your

27
00:01:51,030 --> 00:01:51,890
numbers are a.

28
00:01:51,900 --> 00:01:55,890
This index has actually of default value which is zero here.

29
00:01:55,890 --> 00:01:56,830
As you can see here.

30
00:01:56,940 --> 00:01:57,460
OK.

31
00:01:57,720 --> 00:02:03,730
Here let's actually assign a number of value to the index number of one of these are the integer numbers.

32
00:02:03,730 --> 00:02:09,940
Number one assignment operator and here I can actually assign For example number 50.

33
00:02:10,250 --> 00:02:11,040
OK.

34
00:02:11,550 --> 00:02:17,280
And let's actually output this value to the lock lock that i l o g.

35
00:02:17,460 --> 00:02:18,080
Come on.

36
00:02:18,140 --> 00:02:20,820
And it's actually 14 a string value.

37
00:02:20,820 --> 00:02:30,020
This is the value that is inside of the index one of integer numbers.

38
00:02:31,180 --> 00:02:31,720
OK.

39
00:02:31,740 --> 00:02:38,310
So let's actually put a plus operator here and then it's actually fair to the name of this array index

40
00:02:38,310 --> 00:02:39,030
number 1.

41
00:02:39,030 --> 00:02:41,620
So let's actually do it on our project again and see what happens.

42
00:02:41,730 --> 00:02:48,360
So as you can see here in the luck it says this is the value that is inside of the index zero of integer

43
00:02:48,360 --> 00:02:49,850
numbers at a 50.

44
00:02:50,050 --> 00:02:50,930
OK.

45
00:02:50,970 --> 00:02:56,720
So here in line twenty six we assign the number 50 to the index.

46
00:02:56,760 --> 00:03:03,840
One of these aere here of these integer numbers Airey and in line 28 we decided to output that value

47
00:03:03,840 --> 00:03:04,590
to the log.

48
00:03:04,890 --> 00:03:13,050
But in line twenty four when we actually decided to output the value of the index zero of these integer

49
00:03:13,050 --> 00:03:19,650
numbers array here because we didn't actually assign any value to the index of one of these integer

50
00:03:19,650 --> 00:03:23,090
numbers array the default value was 0 0.

51
00:03:23,190 --> 00:03:23,640
OK.

52
00:03:23,760 --> 00:03:31,170
But in 9:26 We assigned to number 52 the index one of these initial numbers array and in line 28 we

53
00:03:31,170 --> 00:03:32,980
can see that by the number 50.

54
00:03:33,110 --> 00:03:33,620
OK.

55
00:03:33,690 --> 00:03:35,010
So hopefully that makes sense.

56
00:03:35,010 --> 00:03:40,590
Let me actually comment out these lines of code here because I want to show you another way of actually

57
00:03:40,590 --> 00:03:45,820
creating arrays in Java at this time it's actually creates an array of strange values.

58
00:03:45,990 --> 00:03:49,820
So first I need to actually refer to the name of this string class.

59
00:03:49,890 --> 00:03:50,320
OK.

60
00:03:50,340 --> 00:03:53,120
First we need to specify the type of R R.

61
00:03:53,130 --> 00:03:53,750
OK.

62
00:03:53,910 --> 00:03:57,160
So we're going to actually have an array of type string.

63
00:03:57,240 --> 00:04:00,240
And then we need to actually flatten a pair of brackets.

64
00:04:00,360 --> 00:04:01,100
OK.

65
00:04:01,590 --> 00:04:06,000
And here we need to actually specify a name for our array.

66
00:04:06,120 --> 00:04:09,560
So for example strange values.

67
00:04:09,930 --> 00:04:10,400
OK.

68
00:04:10,440 --> 00:04:16,400
And here let me actually point out you can actually put these brackets here after this array name.

69
00:04:16,590 --> 00:04:17,120
OK.

70
00:04:17,130 --> 00:04:20,980
It doesn't make any difference if you want to create arrays.

71
00:04:21,420 --> 00:04:25,970
It depends on you if you want to put their brackets after the array name or after.

72
00:04:26,040 --> 00:04:30,150
I personally prefer to put the brackets after the after the type.

73
00:04:30,240 --> 00:04:30,830
OK.

74
00:04:30,990 --> 00:04:35,030
And this is also a preferred way to actually create an array.

75
00:04:35,070 --> 00:04:35,550
OK.

76
00:04:35,610 --> 00:04:42,240
And then it's actually putting an assignment operator after our array name and here instead of just

77
00:04:42,240 --> 00:04:45,490
typing in new strange brackets.

78
00:04:45,510 --> 00:04:51,390
And here we can actually specify the size of what are they for example 20.

79
00:04:51,750 --> 00:04:59,010
OK we can actually write this array we can actually create this array in another way we can put up an

80
00:04:59,010 --> 00:05:05,780
opening brace followed by a closing curly brace and we can hear specific the values of our alley.

81
00:05:05,800 --> 00:05:13,660
Ok for example the value that is inside of the index 0 of this Arev would be for example animal and

82
00:05:13,810 --> 00:05:19,750
the value that is instead of the index of one of this at a would be for example home the value that

83
00:05:19,750 --> 00:05:25,420
is inside of the index number two of these Arev would be for example table.

84
00:05:25,480 --> 00:05:25,820
OK.

85
00:05:25,840 --> 00:05:29,330
And so on and we can actually assign unlimited values to this array.

86
00:05:29,380 --> 00:05:29,840
OK.

87
00:05:29,920 --> 00:05:34,370
In this way you you're actually specifying the values of this array.

88
00:05:34,390 --> 00:05:40,870
You can actually create your array in this way or you can actually create your arrays by using the new

89
00:05:40,870 --> 00:05:47,010
operator and then specify the size of your array and later you can actually assign values to your area.

90
00:05:47,110 --> 00:05:47,500
OK.

91
00:05:47,530 --> 00:05:49,570
As I actually demonstrated that here.

92
00:05:49,590 --> 00:05:53,330
OK here we actually created an array of integer numbers.

93
00:05:53,440 --> 00:05:56,140
And here we are specified the size r r a.

94
00:05:56,410 --> 00:06:01,240
And here we could actually assign some values to the indexes of that Ari.

95
00:06:01,270 --> 00:06:01,790
OK.

96
00:06:02,050 --> 00:06:09,370
But here we are saying that in index 0 puts the value and amount index number of one puts the value

97
00:06:09,370 --> 00:06:13,780
home and in the index number to put a value table.

98
00:06:13,780 --> 00:06:14,250
OK.

99
00:06:14,350 --> 00:06:22,210
And we could actually iterate over the values of this array by just creating a for loop for int.

100
00:06:22,480 --> 00:06:23,140
OK.

101
00:06:23,170 --> 00:06:25,400
Index assignment operator 0.

102
00:06:25,540 --> 00:06:32,710
So I actually created an integer number here an integer value here and I assigned the value 0 to this

103
00:06:33,070 --> 00:06:33,900
variable.

104
00:06:33,910 --> 00:06:34,190
OK.

105
00:06:34,190 --> 00:06:35,400
Index on here.

106
00:06:35,400 --> 00:06:42,400
I need to actually specify a condition until index is less than the values that are inside of this area.

107
00:06:42,610 --> 00:06:46,580
So remember every array in Java knows it's Len.

108
00:06:46,750 --> 00:06:47,160
OK.

109
00:06:47,200 --> 00:06:52,070
So this area as you can see here knows how many values are inside of this array.

110
00:06:52,090 --> 00:06:52,540
OK.

111
00:06:52,600 --> 00:06:58,540
So when you create an array in Java you are actually fairly in place in memory of which that array is

112
00:06:58,540 --> 00:06:59,190
stored.

113
00:06:59,260 --> 00:06:59,760
OK.

114
00:07:00,010 --> 00:07:02,160
So here these are string values.

115
00:07:02,180 --> 00:07:06,880
It is actually referring to a place in memory which these values are actually stored.

116
00:07:06,880 --> 00:07:11,780
So here I can actually refer to the name of this racing values that Len.

117
00:07:11,830 --> 00:07:19,480
So in this way you are actually getting the number of values that are inside of these array.

118
00:07:19,510 --> 00:07:19,970
OK.

119
00:07:20,050 --> 00:07:27,830
And here we can actually take an index plus plus OK and then they can ask you to open and close this

120
00:07:27,880 --> 00:07:32,120
for loop by using these curly braces and inside of this for loop.

121
00:07:32,190 --> 00:07:35,540
We can just type in log dots.

122
00:07:35,940 --> 00:07:37,560
Oh gee come on.

123
00:07:37,650 --> 00:07:42,810
And here first of all we can actually specify the index overlay.

124
00:07:42,810 --> 00:07:56,770
So index number Poulan plus index OK plus and now we can actually specify a value that is inside of

125
00:07:56,770 --> 00:07:57,630
that index.

126
00:07:57,640 --> 00:07:58,370
OK.

127
00:07:58,810 --> 00:08:09,370
So here we can actually typing to double quotes the value that is inside of colon that index colon plus

128
00:08:10,300 --> 00:08:13,040
index plus is plus.

129
00:08:13,060 --> 00:08:17,370
And here let's actually create an line so that you can actually see what's going on here.

130
00:08:17,380 --> 00:08:22,200
String values and it's actually putting a pair of brackets and inside the brackets.

131
00:08:22,200 --> 00:08:29,590
I can actually put it in the index here so I can actually get the value that is inside of that specific

132
00:08:29,620 --> 00:08:30,270
index.

133
00:08:30,310 --> 00:08:32,620
Let's actually run our project and see what happens.

134
00:08:32,620 --> 00:08:35,170
OK everyone as you can see here in the log.

135
00:08:35,470 --> 00:08:38,220
It says index number 0.

136
00:08:38,440 --> 00:08:39,190
Ok ok.

137
00:08:39,200 --> 00:08:43,610
The value that is inside of that index 0 is an amount.

138
00:08:43,750 --> 00:08:44,290
OK.

139
00:08:44,650 --> 00:08:51,240
So here as you can see the value that we put inside of the index zero of these string values array is

140
00:08:51,260 --> 00:08:51,870
Alamein.

141
00:08:51,940 --> 00:08:52,700
OK.

142
00:08:53,080 --> 00:09:00,880
And here it says our index number one the value that is inside of that index one is home.

143
00:09:00,910 --> 00:09:02,560
So this is that value.

144
00:09:02,650 --> 00:09:07,560
And here again it says index number to the value that is inside of that index.

145
00:09:07,570 --> 00:09:11,740
Number two is table and here you can see that's a value.

146
00:09:12,100 --> 00:09:12,790
OK.

147
00:09:13,090 --> 00:09:15,010
So hopefully that makes sense.

148
00:09:15,070 --> 00:09:17,380
And here let me actually show you another important point.

149
00:09:17,410 --> 00:09:21,350
So as you can see here this aere has feet of values inside it.

150
00:09:21,370 --> 00:09:21,840
OK.

151
00:09:21,850 --> 00:09:25,090
This means that the size of this area is free.

152
00:09:25,290 --> 00:09:25,710
OK.

153
00:09:25,750 --> 00:09:31,240
So here if we actually want to output the size of this array through the lock I can just type in luck

154
00:09:31,960 --> 00:09:39,370
that I O G comma and here I can just refer to the name of this area string values that lend plus to

155
00:09:39,370 --> 00:09:43,340
double quotes in order to actually convert this value to a string value.

156
00:09:43,660 --> 00:09:50,100
So now let's actually comment out this for loop so that we can see those values better.

157
00:09:50,140 --> 00:09:54,570
So as you can see here in the log it says LUGG colon free.

158
00:09:54,850 --> 00:09:59,390
And this means that the size of our string values array is free.

159
00:09:59,500 --> 00:09:59,990
OK.

160
00:10:00,160 --> 00:10:01,070
So this array.

161
00:10:01,120 --> 00:10:04,350
So the size of this array is free.

162
00:10:04,510 --> 00:10:08,830
So if we could actually assign only free values to this array.

163
00:10:08,830 --> 00:10:11,980
So let's actually output another value to the.

