OK.
So as you know about our two dimensional arrays.
OK.
First of all we're actually turning the lens of this group names.
So it is OK.
OK we are actually returning the lead of this arey.
OK so the level of this art is number five.
OK.
One two three four five but now we have these up get child count.
OK.
So these are Titaniums.
ARA is actually two dimensional Ali and these are areas that are actually inside of this Arey are actually
the rose of this arm.
And these values that are inside of these are these are the columns of this Ari.
OK.
These two men two dimensional array is actually an array of arrows and we have our rows and columns
inside of this arii.
OK.
So the rules are these are areas of the inside of these two dimensional array and the columns are the
values that are inside of this address.
OK.
So here again we actually want to return the count of these type names two dimensional array.
First of all I need to access the address that are inside of these child names a.
OK.
So before you actually use this type of names that lenth method.
So if it is going to actually return the number of areas that are inside of these are type 2 dimensional
array.
OK so the number of arrays are actually 5.
OK if you have 5 arrays inside of these two dimensional array one two three four or five.
OK.
But we want to actually return the values that are inside of this arrow if you want to return the count
the number of elements that are inside of these these rows.
These are those that are inside of these child names two dimensional arii.
So here instead of just writing style names that lenth here over I need to actually write in child names.
Sop up group position.
So we have this group position as an argument.
OK.
That's lenth So in this way it can actually go inside of this child names two dimensional array and
then it can actually go inside of these days and then it's going to ask you to return the length of
the columns.
OK.
The length of the columns that are inside of these child names are two dimensional arii.
OK.
So that was the cause of that area.
OK.
So this is the right implementation for this children count.
But I I wanted to actually show you that if we actually incorrectly access the incorrect elements of
our two dimensional arrays the error is going to happen.
OK.
A bug would actually appear in our application and you need to fix that bug in order to get your application
to continue running.
OK.
So let's actually run our project again and see what happens.
So as you can see here again our application is running.
And we have this support group view and we have these children of this sport group view.
OK.
And as you can see we have this computer group view here.
So that let's actually click on it and let's see what happens OK.
Computer And as you can see our application didn't crash OK because we actually fixed the bug.
And as you can see if I click on these items that are inside of this computer group view we can actually
see the stores here.
OK.
And you have this food.
Ice cream banana car.
Mercedes-Benz.
And we have these TV Samsung TV and LG TV.
OK.
So hopefully that makes sense.
And I think that's enough for this theater.
And if you have any questions please post the discussion in the course.
And thank you very much for watching and I'll see you in the next year.
Tauriel.