1
00:00:00,330 --> 00:00:06,720
And when it reaches to these are and curly brace of the Smurfit this variable is no longer a life OK.

2
00:00:06,750 --> 00:00:09,700
And that's the end of this valuable life.

3
00:00:09,740 --> 00:00:10,850
This local radio.

4
00:00:10,990 --> 00:00:11,400
OK.

5
00:00:11,520 --> 00:00:16,940
But when you create a valuable insight of this class inside of the class itself that's valuable.

6
00:00:16,950 --> 00:00:20,830
It's going to be alive for the lifetime of your application.

7
00:00:20,940 --> 00:00:25,800
So hopefully that makes sense and if you have any questions about this concept please post the discussion

8
00:00:25,800 --> 00:00:29,100
in the course and then I do my best to answer your questions.

9
00:00:29,370 --> 00:00:34,830
And another important point that I wanted to talk about as you can see here as I said before in the

10
00:00:34,830 --> 00:00:41,280
previous sections we actually start counting from number zero again not number one.

11
00:00:41,310 --> 00:00:41,860
OK.

12
00:00:41,870 --> 00:00:49,920
So when he I actually specified that if the length of this value this string value is greater than or

13
00:00:49,950 --> 00:00:56,670
equal to number nine this means if the characters if the number of characters of this value is 10.

14
00:00:56,790 --> 00:00:58,410
So if you start from number zero.

15
00:00:58,500 --> 00:01:03,100
So as you can see here now our application is actually running on this emulator here.

16
00:01:03,150 --> 00:01:06,450
And let's actually create some random numbers OK.

17
00:01:06,780 --> 00:01:11,640
And as you can see here now our button is invisible and it actually generated some random random numbers

18
00:01:11,640 --> 00:01:12,110
here.

19
00:01:12,120 --> 00:01:14,280
So let's actually count the random numbers here.

20
00:01:14,370 --> 00:01:22,140
0 1 2 3 4 5 6 7 8 9.

21
00:01:22,370 --> 00:01:22,810
OK.

22
00:01:22,920 --> 00:01:29,640
So that's the result of this if statement here that I actually created and I said that if the length

23
00:01:29,670 --> 00:01:32,860
of this string value is greater than or equal to number 9.

24
00:01:33,030 --> 00:01:38,560
So it is of value the length of this value is actually equal to number 9.

25
00:01:38,700 --> 00:01:41,400
So it is going to actually make this button invisible.

26
00:01:41,700 --> 00:01:46,450
So always remember in programming we always count from numbers zero.

27
00:01:46,710 --> 00:01:48,200
OK this is really important.

28
00:01:48,210 --> 00:01:49,620
Hopefully that makes sense.

29
00:01:49,980 --> 00:01:52,980
And if you have any questions please post the discussion in the course.

30
00:01:53,000 --> 00:01:54,900
I'll do my best to answer your questions.

31
00:01:54,900 --> 00:01:59,160
Aaron thank you very much for watching and I'll see you in the next tutorial.

