1
00:00:00,330 --> 00:00:00,900
OK.

2
00:00:01,050 --> 00:00:04,360
So as you know about our two dimensional arrays.

3
00:00:04,440 --> 00:00:04,970
OK.

4
00:00:05,190 --> 00:00:09,100
First of all we're actually turning the lens of this group names.

5
00:00:09,270 --> 00:00:10,350
So it is OK.

6
00:00:10,360 --> 00:00:13,560
OK we are actually returning the lead of this arey.

7
00:00:13,620 --> 00:00:15,990
OK so the level of this art is number five.

8
00:00:16,020 --> 00:00:16,610
OK.

9
00:00:16,620 --> 00:00:23,480
One two three four five but now we have these up get child count.

10
00:00:23,490 --> 00:00:24,050
OK.

11
00:00:24,120 --> 00:00:25,990
So these are Titaniums.

12
00:00:26,000 --> 00:00:31,890
ARA is actually two dimensional Ali and these are areas that are actually inside of this Arey are actually

13
00:00:31,890 --> 00:00:33,350
the rose of this arm.

14
00:00:33,510 --> 00:00:39,480
And these values that are inside of these are these are the columns of this Ari.

15
00:00:39,690 --> 00:00:40,280
OK.

16
00:00:40,530 --> 00:00:47,220
These two men two dimensional array is actually an array of arrows and we have our rows and columns

17
00:00:47,220 --> 00:00:48,300
inside of this arii.

18
00:00:48,360 --> 00:00:48,850
OK.

19
00:00:49,020 --> 00:00:54,840
So the rules are these are areas of the inside of these two dimensional array and the columns are the

20
00:00:54,840 --> 00:00:57,460
values that are inside of this address.

21
00:00:57,510 --> 00:00:58,060
OK.

22
00:00:58,200 --> 00:01:04,810
So here again we actually want to return the count of these type names two dimensional array.

23
00:01:04,830 --> 00:01:09,670
First of all I need to access the address that are inside of these child names a.

24
00:01:09,700 --> 00:01:10,110
OK.

25
00:01:10,170 --> 00:01:15,390
So before you actually use this type of names that lenth method.

26
00:01:15,480 --> 00:01:21,700
So if it is going to actually return the number of areas that are inside of these are type 2 dimensional

27
00:01:21,770 --> 00:01:22,140
array.

28
00:01:22,140 --> 00:01:24,620
OK so the number of arrays are actually 5.

29
00:01:24,620 --> 00:01:30,630
OK if you have 5 arrays inside of these two dimensional array one two three four or five.

30
00:01:30,630 --> 00:01:31,040
OK.

31
00:01:31,170 --> 00:01:37,680
But we want to actually return the values that are inside of this arrow if you want to return the count

32
00:01:37,740 --> 00:01:42,420
the number of elements that are inside of these these rows.

33
00:01:42,450 --> 00:01:46,710
These are those that are inside of these child names two dimensional arii.

34
00:01:46,860 --> 00:01:54,770
So here instead of just writing style names that lenth here over I need to actually write in child names.

35
00:01:54,840 --> 00:01:58,280
Sop up group position.

36
00:01:58,290 --> 00:02:00,680
So we have this group position as an argument.

37
00:02:00,980 --> 00:02:01,500
OK.

38
00:02:01,680 --> 00:02:08,310
That's lenth So in this way it can actually go inside of this child names two dimensional array and

39
00:02:08,310 --> 00:02:14,490
then it can actually go inside of these days and then it's going to ask you to return the length of

40
00:02:14,520 --> 00:02:15,870
the columns.

41
00:02:15,900 --> 00:02:16,660
OK.

42
00:02:16,810 --> 00:02:21,070
The length of the columns that are inside of these child names are two dimensional arii.

43
00:02:21,170 --> 00:02:22,000
OK.

44
00:02:22,320 --> 00:02:24,970
So that was the cause of that area.

45
00:02:25,130 --> 00:02:25,740
OK.

46
00:02:25,860 --> 00:02:29,930
So this is the right implementation for this children count.

47
00:02:30,240 --> 00:02:38,820
But I I wanted to actually show you that if we actually incorrectly access the incorrect elements of

48
00:02:39,030 --> 00:02:42,370
our two dimensional arrays the error is going to happen.

49
00:02:42,420 --> 00:02:42,940
OK.

50
00:02:43,080 --> 00:02:50,340
A bug would actually appear in our application and you need to fix that bug in order to get your application

51
00:02:50,580 --> 00:02:51,680
to continue running.

52
00:02:51,720 --> 00:02:52,350
OK.

53
00:02:52,620 --> 00:02:56,730
So let's actually run our project again and see what happens.

54
00:02:56,730 --> 00:02:59,340
So as you can see here again our application is running.

55
00:02:59,580 --> 00:03:04,980
And we have this support group view and we have these children of this sport group view.

56
00:03:05,120 --> 00:03:05,770
OK.

57
00:03:05,820 --> 00:03:09,070
And as you can see we have this computer group view here.

58
00:03:09,210 --> 00:03:13,330
So that let's actually click on it and let's see what happens OK.

59
00:03:14,080 --> 00:03:19,800
Computer And as you can see our application didn't crash OK because we actually fixed the bug.

60
00:03:20,100 --> 00:03:25,470
And as you can see if I click on these items that are inside of this computer group view we can actually

61
00:03:25,470 --> 00:03:26,650
see the stores here.

62
00:03:26,760 --> 00:03:27,440
OK.

63
00:03:27,780 --> 00:03:29,190
And you have this food.

64
00:03:29,190 --> 00:03:31,790
Ice cream banana car.

65
00:03:32,010 --> 00:03:33,110
Mercedes-Benz.

66
00:03:33,270 --> 00:03:37,670
And we have these TV Samsung TV and LG TV.

67
00:03:37,680 --> 00:03:38,730
OK.

68
00:03:38,820 --> 00:03:40,880
So hopefully that makes sense.

69
00:03:41,070 --> 00:03:43,880
And I think that's enough for this theater.

70
00:03:43,920 --> 00:03:47,740
And if you have any questions please post the discussion in the course.

71
00:03:47,820 --> 00:03:51,220
And thank you very much for watching and I'll see you in the next year.

72
00:03:51,270 --> 00:03:51,660
Tauriel.

