Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:07,010 --> 00:00:07,370
Hey there.
2
00:00:07,370 --> 00:00:08,570
Welcome back, friends.
3
00:00:08,600 --> 00:00:14,570
Today, we will try to check a couple of more interesting functions which are available inside a variety
4
00:00:14,570 --> 00:00:15,560
of steel bags.
5
00:00:16,040 --> 00:00:24,560
And these are to lower case to uppercase index of replace substring, substring before and substring
6
00:00:24,560 --> 00:00:25,220
after.
7
00:00:25,730 --> 00:00:31,640
Now these functions are nothing but functions which are derived from Java string functions.
8
00:00:31,970 --> 00:00:35,570
And these functions work on definitely strings.
9
00:00:36,140 --> 00:00:36,590
No strings.
10
00:00:36,650 --> 00:00:38,210
These are very easy to understand.
11
00:00:38,210 --> 00:00:44,600
And in order to save some time, I have already created the examples for all of these functions.
12
00:00:44,990 --> 00:00:46,060
Now, what are functions?
13
00:00:46,100 --> 00:00:48,590
Functions and methods are one and the same.
14
00:00:48,770 --> 00:00:49,190
All right.
15
00:00:49,220 --> 00:00:55,250
Now, moving forward, first of all, to uppercase, very definitely convert the string to uppercase
16
00:00:55,820 --> 00:01:01,550
to lowercase, very definitely convert the text and to the lowercase, which is straight forward.
17
00:01:01,790 --> 00:01:04,849
Then comes the index of function.
18
00:01:05,120 --> 00:01:11,300
Now, first of all, we will be passing on the string and then this specific character and this function
19
00:01:11,300 --> 00:01:14,420
will return the exact function not taken note of it.
20
00:01:14,660 --> 00:01:17,680
A string is a character added and adding index.
21
00:01:17,690 --> 00:01:18,990
It starts with zero.
22
00:01:19,010 --> 00:01:22,550
So when it comes to you, in the case of state easy.
23
00:01:22,550 --> 00:01:24,510
Then next would be do lie.
24
00:01:24,530 --> 00:01:24,790
Right?
25
00:01:24,830 --> 00:01:28,130
So it starts with zero, then one, then two.
26
00:01:28,220 --> 00:01:32,860
So in the third position we have u, which has to index us two.
27
00:01:33,290 --> 00:01:35,690
All right, then comes replace.
28
00:01:35,720 --> 00:01:39,430
As the name suggests, we will pass on three parameters.
29
00:01:39,440 --> 00:01:40,730
Firstly the string.
30
00:01:41,030 --> 00:01:45,080
Then we have the segment of the string and then the replacement.
31
00:01:45,170 --> 00:01:49,610
So in this case, in place of a state easy dot org is dead.
32
00:01:49,620 --> 00:01:52,490
Easy would be replaced to get super easy.
33
00:01:53,300 --> 00:01:54,710
Then we have the substring.
34
00:01:55,220 --> 00:01:58,730
Substring again has three parameters.
35
00:01:58,730 --> 00:01:59,780
Firstly the string.
36
00:02:00,050 --> 00:02:03,830
Then we have the starting index, then bending index.
37
00:02:04,400 --> 00:02:11,420
In here the starting index is two so the substring will start with index two, which is nothing but
38
00:02:11,420 --> 00:02:14,780
you and end with index five, which isn't a thing.
39
00:02:14,780 --> 00:02:15,350
But why?
40
00:02:15,470 --> 00:02:17,910
So the substring would be usually why.
41
00:02:18,410 --> 00:02:22,040
Then finally we have the substring before and substring after.
42
00:02:22,250 --> 00:02:28,340
Substring before, as the name suggests, who will give us the substring before the segment?
43
00:02:28,370 --> 00:02:30,110
Easy, which is steady.
44
00:02:30,350 --> 00:02:37,910
Likewise, substring after will give us the segment which is after the segment easy, which is DART
45
00:02:37,910 --> 00:02:38,630
or RG.
46
00:02:39,140 --> 00:02:44,990
So these are very simple string related functions, very simple, easy to understand, easy to use.
47
00:02:45,350 --> 00:02:47,480
Let us quickly try to see the output.
48
00:02:47,720 --> 00:02:55,610
Here is the output and these are let me walk you through firstly uppercase.
49
00:02:55,760 --> 00:03:00,380
So here is the uppercase is easy to talk than lowercase is pretty easy.
50
00:03:00,680 --> 00:03:05,000
So the next output is a steady, easy, all lowercase.
51
00:03:05,420 --> 00:03:13,250
Then we have the index of u, which is nothing but to as we have already discussed, index it starts
52
00:03:13,250 --> 00:03:17,360
with zero, then replacing the segment steady.
53
00:03:17,360 --> 00:03:18,800
Easy, but super easy.
54
00:03:18,830 --> 00:03:23,090
So in here it is showing us super easy dot org if it is again.
55
00:03:23,090 --> 00:03:23,510
Okay.
56
00:03:23,510 --> 00:03:30,020
Cool then substring is starting with index two and ending with index five.
57
00:03:30,440 --> 00:03:31,760
Which gives us substring.
58
00:03:31,790 --> 00:03:33,890
You divide which is the output.
59
00:03:34,250 --> 00:03:43,100
Then we have substring before easy, which is a steady perfect and then substring after easy, which
60
00:03:43,100 --> 00:03:44,090
is not authority.
61
00:03:45,140 --> 00:03:45,620
Here we go.
62
00:03:46,010 --> 00:03:50,150
So these are the standard output from these functions.
63
00:03:50,150 --> 00:03:55,220
And definitely these are useful string functions which we can use in our program.
64
00:03:55,910 --> 00:03:58,420
I hope you guys understood the overall concept.
65
00:03:58,430 --> 00:04:02,390
Do try to experiment and try to check all of these functions.
66
00:04:02,420 --> 00:04:03,770
These are very definitely help.
67
00:04:04,310 --> 00:04:04,730
All right.
68
00:04:04,730 --> 00:04:06,530
So this is it for today's video.
69
00:04:06,650 --> 00:04:08,300
I hope you guys enjoyed this video.
70
00:04:08,330 --> 00:04:09,260
Thanks for watching.
5744
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.