1
00:00:00,330 --> 00:00:04,620
That's because of this space between these two words OK.

2
00:00:04,740 --> 00:00:06,340
And that's the job of this.

3
00:00:06,350 --> 00:00:08,250
ESTRIN tokenizer class.

4
00:00:08,280 --> 00:00:11,420
OK so now let me actually show you another example.

5
00:00:11,670 --> 00:00:12,200
OK.

6
00:00:12,300 --> 00:00:16,180
Now let me actually comment out these lines of code here.

7
00:00:16,260 --> 00:00:19,780
Now I want to actually create another string object.

8
00:00:19,830 --> 00:00:25,770
So first I need to refer to the name of the String class and then I need to give a name to this object.

9
00:00:25,770 --> 00:00:27,860
For example Esti are two.

10
00:00:28,110 --> 00:00:33,930
And then I need to put in an assignment operator here and then I put into double quotes here and then

11
00:00:33,960 --> 00:00:37,550
inside it double codes I can actually assign some values to this object.

12
00:00:37,560 --> 00:00:40,670
OK this is another text at site.

13
00:00:40,680 --> 00:00:46,000
This is your text at sign.

14
00:00:46,050 --> 00:00:51,860
This is my text and then I need to put in a semi-colon at the end of my statement.

15
00:00:52,080 --> 00:00:52,810
OK.

16
00:00:53,490 --> 00:00:59,230
So now I can actually create another as 3 and tokenizer object.

17
00:00:59,250 --> 00:00:59,960
OK.

18
00:01:00,000 --> 00:01:05,760
So first I need to refer to the name of this string tokenizer class and then I need to give a name to

19
00:01:05,760 --> 00:01:06,510
this object.

20
00:01:06,510 --> 00:01:08,740
For example as the odd object.

21
00:01:09,000 --> 00:01:15,690
And then I need to put in an assignment operator here and then I need to actually putting this key word

22
00:01:15,690 --> 00:01:17,170
here new.

23
00:01:17,670 --> 00:01:21,270
And then again I need to refer to the name of this three tokenizer class.

24
00:01:21,410 --> 00:01:22,100
OK.

25
00:01:22,140 --> 00:01:26,030
And then again I need to the first with the name of this drink tokenizer class.

26
00:01:26,040 --> 00:01:26,550
OK.

27
00:01:26,640 --> 00:01:30,790
So first of all I want to refer to the name of this as we are to object.

28
00:01:30,870 --> 00:01:31,650
OK.

29
00:01:32,220 --> 00:01:39,160
And then I put in a comma here and then I put two double quotes here and then inside double quotes are

30
00:01:39,160 --> 00:01:43,710
you just putting this character here at side OK.

31
00:01:43,860 --> 00:01:46,860
And then I need to put in a semi-colon at the end of my statement.

32
00:01:47,070 --> 00:01:54,060
So now I want to actually set some texts to these two this takes the one object.

33
00:01:54,060 --> 00:01:54,530
OK.

34
00:01:54,780 --> 00:02:02,160
So first I need to refer to the name of this object the one that said text and then I need to refer

35
00:02:02,160 --> 00:02:06,240
to the name of this object as t r object to.

36
00:02:06,480 --> 00:02:07,320
OK.

37
00:02:07,650 --> 00:02:10,490
Dot next token.

38
00:02:10,530 --> 00:02:16,590
So as you can see here now if I were on my project let's see what happens when I try to run a project

39
00:02:17,040 --> 00:02:18,800
on this simulator here.

40
00:02:19,020 --> 00:02:23,380
So as you can see here it says this is another text.

41
00:02:23,460 --> 00:02:26,590
Ok so this is our RTX the one object.

42
00:02:26,610 --> 00:02:29,150
OK this is another text.

43
00:02:29,400 --> 00:02:32,230
So what's going on here as you can see here.

44
00:02:32,250 --> 00:02:33,780
I put this text here.

45
00:02:33,900 --> 00:02:34,490
OK.

46
00:02:34,710 --> 00:02:37,530
And it only showed us this text.

47
00:02:37,530 --> 00:02:39,530
This is another text here.

48
00:02:39,540 --> 00:02:45,630
I actually created a string object called Esti are two objects called Esti are two.

49
00:02:45,690 --> 00:02:53,200
And here I created an object from this three tokenizer class called Esti are object to.

50
00:02:53,400 --> 00:02:53,860
OK.

51
00:02:53,970 --> 00:02:58,930
And for this constructor I passed two values here first.

52
00:02:59,160 --> 00:03:00,310
I actually passed.

53
00:03:00,330 --> 00:03:02,560
This is the R to object.

54
00:03:02,670 --> 00:03:08,910
OK this is an object of type as 3 and I actually passed this value here inside these double quotes at

55
00:03:08,900 --> 00:03:09,540
sign.

56
00:03:09,720 --> 00:03:14,490
OK so this is going to be our daily meter for our Esti are two objects.

57
00:03:14,520 --> 00:03:15,030
OK.

58
00:03:15,030 --> 00:03:22,920
So this second argument as you can see here is at Slyne inside these double coats here indicates that

59
00:03:22,920 --> 00:03:28,450
the at sign character should be used as the delimiter between tokens.

60
00:03:28,490 --> 00:03:35,720
OK so let me actually repeat again this ad saying character here indicates that the at sign character

61
00:03:35,940 --> 00:03:39,980
should be used as the delimiter between tokens.

62
00:03:40,010 --> 00:03:41,520
Ok for example.

63
00:03:41,920 --> 00:03:42,500
OK.

64
00:03:42,690 --> 00:03:51,560
So this is here indicates that this vote here should be used as the delimiter between tokens.

65
00:03:51,750 --> 00:03:55,240
So if you are on my project now let's see what happens.

66
00:03:55,290 --> 00:04:01,990
And here as you can see it actually put this t h here as the value of these TXI the word object.

67
00:04:02,010 --> 00:04:02,720
OK.

68
00:04:02,940 --> 00:04:10,440
So as you can see here are I specified that this vort this word here should be used as the delimiter

69
00:04:10,440 --> 00:04:11,480
between characters.

70
00:04:11,490 --> 00:04:11,880
OK.

71
00:04:11,910 --> 00:04:15,470
So as you can see here this is is the delimiter between tokens.

72
00:04:15,540 --> 00:04:18,390
So it only actually outputted this.

73
00:04:18,600 --> 00:04:21,140
Th here too this takes through here.

74
00:04:21,170 --> 00:04:28,230
OK so now let me I actually changed this word here to at sign and if on my project again it's going

75
00:04:28,230 --> 00:04:30,680
to actually put this text here.

76
00:04:30,690 --> 00:04:32,240
This is another text.

77
00:04:32,250 --> 00:04:32,820
OK.

78
00:04:32,820 --> 00:04:37,160
So it's going to take Actually some time in order to actually run our project again.

79
00:04:37,170 --> 00:04:39,420
As you can see this is another text.

80
00:04:39,420 --> 00:04:45,580
Ok so now if you want to actually set some text to the text the two object.

81
00:04:45,600 --> 00:04:46,980
Let's see what happens.

82
00:04:47,020 --> 00:04:52,880
The x the two dots set text.

83
00:04:52,890 --> 00:04:58,860
As you can see here I actually used the autocomplete feature of the Android stood you by pressing on

84
00:04:58,850 --> 00:05:02,920
the control plus the space key on your keyboard.

85
00:05:02,920 --> 00:05:03,340
OK.

86
00:05:03,400 --> 00:05:07,590
And then inside the apprentices I need to refer to the name of this object.

87
00:05:07,600 --> 00:05:12,990
Esti are object to dot next token.

88
00:05:13,030 --> 00:05:15,640
So let's actually run our project and see what happens.

89
00:05:15,640 --> 00:05:20,430
So it's going to actually take some time in order to run our project as you can see.

90
00:05:20,440 --> 00:05:23,500
This is your text here as you can see here.

91
00:05:23,530 --> 00:05:27,640
So this site here is the delimiter between these characters.

92
00:05:27,640 --> 00:05:30,580
First it outputted are the stakes here.

93
00:05:30,580 --> 00:05:33,710
This is another text and then it outputted.

94
00:05:33,730 --> 00:05:34,600
This takes here.

95
00:05:34,600 --> 00:05:42,220
This is your text and if I actually put another text view inside this content underline main example

96
00:05:42,490 --> 00:05:43,570
let's see what happens.

97
00:05:43,570 --> 00:05:53,170
For example it's actually true that a large takes few here and then I need to actually assign an ID

98
00:05:53,170 --> 00:05:54,750
to these text view.

99
00:05:54,850 --> 00:05:58,600
For example the free t XTi free.

100
00:05:59,350 --> 00:06:05,710
And then inside the main activity that Java as you can see here now I can actually create an object

101
00:06:06,040 --> 00:06:11,380
from this text view class and that night and then I can refer to that takes the free object here.

102
00:06:11,380 --> 00:06:11,840
OK.

103
00:06:11,890 --> 00:06:17,430
So first I need to refer to the name of the text to your class and then I need to give a name to this

104
00:06:17,970 --> 00:06:18,520
object.

105
00:06:18,550 --> 00:06:20,520
TSTO XTi Freep.

106
00:06:20,530 --> 00:06:28,120
And then I need to put in an assignment operator here and then inside Apprentice's I can actually refer

107
00:06:28,120 --> 00:06:31,330
to the name of the text class text view.

108
00:06:31,600 --> 00:06:32,370
OK.

109
00:06:32,860 --> 00:06:42,990
And then I need to type in here find view by ID or that Id Dot T XTi free.

110
00:06:43,470 --> 00:06:44,110
OK.

111
00:06:44,380 --> 00:06:47,820
And then I need to put in a semi-colon at the end of my statement.

112
00:06:47,990 --> 00:06:54,430
OK so here I can assign a value to that to the free object DXi free.

113
00:06:54,460 --> 00:06:57,160
That said text.

114
00:06:58,300 --> 00:07:00,280
As you can see here this set text.

115
00:07:00,280 --> 00:07:03,800
Here is an instance Smurfette from this text through class.

116
00:07:03,820 --> 00:07:04,280
OK.

117
00:07:04,360 --> 00:07:06,420
So the free that said text.

118
00:07:06,640 --> 00:07:14,080
And then inside Apprentice's I can't just refer to the name of this Esti are object to dot next token.

119
00:07:14,450 --> 00:07:15,130
OK.

120
00:07:15,310 --> 00:07:21,940
So as you can see here this next token method here is again an instance Smurfette from this is tokenizer

121
00:07:21,940 --> 00:07:22,320
class.

122
00:07:22,350 --> 00:07:23,370
OK OK.

123
00:07:23,410 --> 00:07:24,950
So now if I run my project.

124
00:07:24,970 --> 00:07:26,290
So as you can see here.

125
00:07:26,500 --> 00:07:31,030
So as you can see said this is another text and this is disvalue is here.

126
00:07:31,030 --> 00:07:32,600
This is your text.

127
00:07:32,860 --> 00:07:35,960
This value is here and this is my text.

128
00:07:36,010 --> 00:07:36,340
OK.

129
00:07:36,340 --> 00:07:38,190
And this is disvalue is here.

130
00:07:38,230 --> 00:07:39,090
OK.

131
00:07:39,520 --> 00:07:41,390
So hopefully that makes sense.

132
00:07:41,440 --> 00:07:46,040
I can't even concatenate this value here with another value.

133
00:07:46,210 --> 00:07:48,640
I just need to put in the plus operator here.

134
00:07:48,970 --> 00:07:54,570
And then I can put it into double quotes and then inside the double cords I can put in another text

135
00:07:54,580 --> 00:07:56,700
for example fine.

136
00:07:57,390 --> 00:08:01,430
OK so now if I had on my project let's see what happens.

137
00:08:01,630 --> 00:08:06,570
OK it's going to take some time in order to run our project as you can see here.

138
00:08:06,790 --> 00:08:10,630
It puts this fine work here at the end of this text here.

139
00:08:10,630 --> 00:08:11,300
OK.

140
00:08:11,740 --> 00:08:13,130
This is my text.

141
00:08:13,270 --> 00:08:14,270
OK.

142
00:08:14,990 --> 00:08:21,090
I can actually put in a space here in order to make this value more readable.

143
00:08:21,790 --> 00:08:25,240
And if I run my project again it's going to actually run our project.

144
00:08:25,390 --> 00:08:28,270
It's going to take some time in order to run a project.

145
00:08:28,270 --> 00:08:32,760
So as you can see here it put this space here before is fine.

146
00:08:32,770 --> 00:08:33,830
Vote here OK.

147
00:08:34,000 --> 00:08:35,620
So this is my test flight.

148
00:08:35,710 --> 00:08:39,700
So first let me actually talk a little bit about constructors.

149
00:08:39,700 --> 00:08:40,410
OK.

150
00:08:40,750 --> 00:08:47,260
In the previous tutorials I talked about constructors and how and how we can actually create our own

151
00:08:47,570 --> 00:08:48,690
constructors.

152
00:08:49,000 --> 00:08:55,930
But here let me actually point out that several things happen when you use the new operator here.

153
00:08:56,010 --> 00:08:56,350
OK.

154
00:08:56,350 --> 00:09:02,530
For example when you are creating an object from this string Thring tokenizer class several things happen.

155
00:09:02,590 --> 00:09:03,350
OK.

156
00:09:03,370 --> 00:09:12,470
When we actually use this new keyboard here OK the new instance of the given class is created OK.

157
00:09:12,970 --> 00:09:15,000
Memory is allocated for it.

158
00:09:15,160 --> 00:09:22,010
And our special method defined in the given class is called and that special Meffert is constructed.

159
00:09:22,020 --> 00:09:22,750
OK.

160
00:09:23,040 --> 00:09:32,170
Our construct here is a way to create a new instance of a Class A constructor initializes the new object

161
00:09:32,740 --> 00:09:34,760
and it's valuable as OK.

162
00:09:34,780 --> 00:09:40,510
As you saw in the previous tutorials that I actually showed you how you can actually initialize your

163
00:09:40,510 --> 00:09:45,070
objects and your variables by using the constructor.

164
00:09:45,250 --> 00:09:45,930
OK.

165
00:09:46,060 --> 00:09:48,390
A constructor is actually a special method.

166
00:09:48,550 --> 00:09:51,580
A constructor cannot have a return type.

167
00:09:51,580 --> 00:09:54,830
OK but if it's nice to have a return type.

168
00:09:55,030 --> 00:09:59,490
OK that's the difference between a constructor and a method.

