1
00:00:00,560 --> 00:00:06,060
Is that we can actually concatenate strings together.

2
00:00:06,090 --> 00:00:06,610
OK.

3
00:00:06,780 --> 00:00:11,760
The string class includes a method for concatenating two strings.

4
00:00:11,760 --> 00:00:12,420
OK.

5
00:00:12,570 --> 00:00:20,840
So now as you can see the name of my string object is the are one that can concat as you can see.

6
00:00:20,940 --> 00:00:23,670
Now we can actually choose this option here.

7
00:00:23,790 --> 00:00:30,270
And as you can see here it's now showing us some information about this method inside the class.

8
00:00:30,300 --> 00:00:30,910
OK.

9
00:00:31,110 --> 00:00:38,120
So this method actually accepts an argument of type A string and the return type of this method is as

10
00:00:38,150 --> 00:00:44,400
strange and dismay if it is inside this three in class so here as you can see it's now showing us some

11
00:00:44,460 --> 00:00:46,740
information about this method.

12
00:00:46,930 --> 00:00:51,990
This Byford concatenates specified strange to the end of this strange.

13
00:00:51,990 --> 00:00:52,540
OK.

14
00:00:52,710 --> 00:00:59,720
If the length of the argument the string is zero then this strange object is returned otherwise a strange

15
00:00:59,760 --> 00:01:06,130
object is returned that that represents a character sequence that is the concatenation of the character

16
00:01:06,150 --> 00:01:12,840
sequence represented by this strange object and the character sequence represented by the arguments.

17
00:01:12,960 --> 00:01:15,810
So now let's actually choose this option here.

18
00:01:15,930 --> 00:01:22,830
And now I can actually put in a strong leader on here as you can see here we need to put in our string

19
00:01:22,890 --> 00:01:23,350
object.

20
00:01:23,370 --> 00:01:25,740
OK so I can't just put into double quotes here.

21
00:01:26,010 --> 00:01:29,180
And now I can actually put in another value.

22
00:01:30,900 --> 00:01:31,570
OK.

23
00:01:31,820 --> 00:01:36,880
And now I need to actually put in a semi-colon at the end of my statement.

24
00:01:37,010 --> 00:01:42,200
So now as you know this contrasts Smurfette returns a value of type.

25
00:01:42,200 --> 00:01:43,200
Strange.

26
00:01:43,230 --> 00:01:48,580
OK so now I can actually output this value directly to the console.

27
00:01:48,680 --> 00:01:51,590
Or I can actually assign this value.

28
00:01:51,590 --> 00:01:55,060
This returns value to another strange object.

29
00:01:55,090 --> 00:02:02,850
OK so now I want to show you both ways in order to make this concept more meaningful for you.

30
00:02:03,110 --> 00:02:10,760
So I just into the open here System start out that princeling and then inside the apprentice's I can

31
00:02:10,760 --> 00:02:15,000
just put this statement here inside of this prentices.

32
00:02:15,500 --> 00:02:19,760
And then I need to put in a semicolon at the end of my statement.

33
00:02:19,760 --> 00:02:25,100
So now if I write on my project as you can see that it's going to actually output this value to the

34
00:02:25,100 --> 00:02:28,150
console a value another value.

35
00:02:28,320 --> 00:02:34,310
OK so if we actually put a space here and if I get on my project again as you can see it's going to

36
00:02:34,310 --> 00:02:36,920
actually output this value to the console.

37
00:02:36,940 --> 00:02:45,020
OK so now let me get to comment out this line of code here and if I create another string object and

38
00:02:45,110 --> 00:02:48,520
the name of my string object is for example the are two.

39
00:02:48,560 --> 00:02:53,420
And then I need to put in an assignment operator here and then I can actually assign this statement

40
00:02:53,420 --> 00:02:56,610
here to my Esti are two a string instance.

41
00:02:56,630 --> 00:02:57,120
OK.

42
00:02:57,290 --> 00:03:00,190
And then I need to put in a semicolon at the end of my statement.

43
00:03:00,230 --> 00:03:04,770
So as you can see here the Smurfette returns a string value.

44
00:03:04,800 --> 00:03:09,060
Ok so I can actually put that returned value to this.

45
00:03:09,200 --> 00:03:10,910
It's the R to an object.

46
00:03:10,910 --> 00:03:11,500
OK.

47
00:03:11,670 --> 00:03:14,520
And now I can actually output that value to the console.

48
00:03:14,660 --> 00:03:19,340
So I just need to type in here or system that out that princeling.

49
00:03:19,790 --> 00:03:26,500
And then inside the prentices I can just refer to the name of my Esti are two object and then I need

50
00:03:26,500 --> 00:03:29,010
to put in a semicolon at the end of my statement.

51
00:03:29,060 --> 00:03:33,390
So as you can see here again it's going to actually output this value to the console.

52
00:03:33,440 --> 00:03:39,450
So there are lots of other effects that we can use on screen objects which you can find them inside

53
00:03:39,450 --> 00:03:42,300
the Java documentation's in the Oracle Web site.

54
00:03:42,300 --> 00:03:46,750
So make sure that you check those documentations later in this course.

55
00:03:46,760 --> 00:03:48,850
I'll talk more about those methods.

56
00:03:48,860 --> 00:03:52,710
I can actually call and other Meffert and this is the are to object for example.

57
00:03:52,730 --> 00:03:57,710
For example I can make the characters of this string object uppercase.

58
00:03:57,740 --> 00:04:04,510
So I just need to typing Esti are two dots to uppercase.

59
00:04:05,150 --> 00:04:05,590
OK.

60
00:04:05,690 --> 00:04:11,800
As you can see here the Smurfette returns a string object and this method is inside the string class.

61
00:04:11,810 --> 00:04:12,320
OK.

62
00:04:12,470 --> 00:04:16,960
So if I just choose this option I need to put in a semicolon at the end of my statement.

63
00:04:17,270 --> 00:04:20,300
So as you know this MF'er returns a string object.

64
00:04:20,300 --> 00:04:23,390
So I can't just directly outputs that value to the console.

65
00:04:23,510 --> 00:04:31,150
System that out that princeling and then inside the prentices I can just refer to the name of the Asti

66
00:04:31,150 --> 00:04:32,590
are two object.

67
00:04:32,660 --> 00:04:34,000
That's true.

68
00:04:34,300 --> 00:04:35,800
Uppercase OK.

69
00:04:36,050 --> 00:04:39,250
And then I need to put in a semicolon at the end of my statement.

70
00:04:39,320 --> 00:04:39,970
OK.

71
00:04:40,070 --> 00:04:44,600
Now if I had on my project as you can see this value is now output to the console.

72
00:04:44,650 --> 00:04:50,990
OK and remember that in this line of code here we are actually making a copy of the Esti are two object

73
00:04:51,020 --> 00:04:56,640
in order to make the characters of these a string object approaches.

74
00:04:56,650 --> 00:04:57,270
OK.

75
00:04:57,470 --> 00:05:05,540
If you want the characters of the 60 or two object to be uppercase forever you need to assign this method

76
00:05:05,540 --> 00:05:07,680
here to another string object.

77
00:05:07,790 --> 00:05:08,090
OK.

78
00:05:08,090 --> 00:05:11,300
As you can as you know this method returns a string object.

79
00:05:11,330 --> 00:05:12,050
OK.

80
00:05:12,050 --> 00:05:19,370
And if I actually assign the return value of this method to another as an object to the characters of

81
00:05:19,430 --> 00:05:21,800
that string object is going to be uppercase.

82
00:05:21,950 --> 00:05:30,260
But for this line of code you're actually temporarily making the characters of the ASCII are to object

83
00:05:30,470 --> 00:05:31,250
uppercase.

84
00:05:31,370 --> 00:05:41,190
And then after this line of code after line forthy actually just type in system that out that princeling.

85
00:05:41,690 --> 00:05:46,480
And that inside the prentices if I actually refer to the name of this or to object.

86
00:05:46,640 --> 00:05:52,100
The character of this object is going to be as normal as you can see here.

87
00:05:52,100 --> 00:05:52,910
OK.

88
00:05:53,000 --> 00:06:00,290
Now the characters of this as the are to object is normal but here in line 40 we just temporarily made

89
00:06:00,620 --> 00:06:07,680
the characters of this is the are to object to uppercase and then it actually changed back to normal.

90
00:06:07,770 --> 00:06:15,200
OK but if you want to change the characters of this s t r to object to uppercase for ever.

91
00:06:15,200 --> 00:06:21,190
I just need to assign the return value of this Mefford to another string object.

92
00:06:21,200 --> 00:06:28,460
So I just need to type in here as strange another as the R and then I need to put in an assignment operator

93
00:06:28,460 --> 00:06:34,890
here and then I need to put this statement here as a value to this as an object.

94
00:06:34,900 --> 00:06:35,440
OK.

95
00:06:35,560 --> 00:06:42,370
And now this and other is are object and now the characters of this and other Esti are object is going

96
00:06:42,370 --> 00:06:43,180
to be uppercase.

97
00:06:43,210 --> 00:06:49,600
So I just need to say I've been here system that out that printin and and in say the prentices I can

98
00:06:49,600 --> 00:06:52,720
just put into double quotes and say double quotes.

99
00:06:52,720 --> 00:07:01,810
I can just type in the characters of another or object are now uppercase and then I need to put up plus

100
00:07:01,840 --> 00:07:05,790
operator here in order to concatenate this strange here.

101
00:07:05,920 --> 00:07:08,730
This value of B.

102
00:07:09,070 --> 00:07:13,810
D and other s.t. or object and other Esti are objects.

103
00:07:13,840 --> 00:07:14,330
OK.

104
00:07:14,440 --> 00:07:17,010
And then I need to put in a semicolon at the end of my statement.

105
00:07:17,020 --> 00:07:17,570
OK.

106
00:07:17,920 --> 00:07:22,990
So now if I write on my project as you can see it's going to have this value to the console locate the

107
00:07:22,990 --> 00:07:28,690
characters of another object are now uppercase a value and other value.

108
00:07:28,870 --> 00:07:34,630
So now if we're actually putting a space here and if I it on my project again as you can see it's going

109
00:07:34,630 --> 00:07:38,340
to actually make this value here more readable.

110
00:07:38,380 --> 00:07:39,200
OK.

111
00:07:39,670 --> 00:07:48,400
And as you can see here now the characters of our and other object are uppercase and here if we actually

112
00:07:48,400 --> 00:07:52,950
want to output the value of the other a c or object to the console.

113
00:07:53,170 --> 00:07:55,360
Let's see how this is done.

114
00:07:55,430 --> 00:08:02,050
OK system turns out that princeling and an inside the apprentice's I can just revert to the name of

115
00:08:02,050 --> 00:08:03,860
my A.S.C. or object.

116
00:08:04,030 --> 00:08:10,900
And again if I run my project the characters and other Esti or object are uppercase.

117
00:08:10,930 --> 00:08:15,010
OK but the characters of the art object are normal.

118
00:08:15,010 --> 00:08:20,960
OK so if I just want to output the value of them as the two object to the console I can just type in

119
00:08:20,960 --> 00:08:24,150
here system that out that princeling.

120
00:08:24,760 --> 00:08:28,960
And then inside the apprentice's I can just refer to the name of the object.

121
00:08:29,170 --> 00:08:33,970
And as you can see here if I run my project as you can see it's going to actually output this value

122
00:08:33,970 --> 00:08:35,040
to the console OK.

123
00:08:35,230 --> 00:08:41,960
So now I can actually make the characters of the a c or two object lowercase.

124
00:08:41,980 --> 00:08:48,520
So in this case I can just type in here a system that's out that insulin and then inside Apprentice's

125
00:08:48,580 --> 00:08:56,320
I can just revert to the name of my object as the are to start to lowercase and then I need to put in

126
00:08:56,320 --> 00:08:58,270
a semi-colon at the end of my statement.

127
00:08:58,540 --> 00:09:03,370
And now if I go on my project as you can see it's going to output this value to the console OK.

128
00:09:03,730 --> 00:09:07,300
So I think that's enough for this tutorial.

129
00:09:07,300 --> 00:09:11,170
And in the next tutorials I'll talk more about this thing.

130
00:09:11,200 --> 00:09:13,650
Objects and string methods.

131
00:09:13,750 --> 00:09:17,820
But if you have any questions please post the discussion in of course.

132
00:09:17,870 --> 00:09:22,620
And thank you very much for watching and I'll see you in the next tutorial.

