‫All right.
‫Now that you know how to use the race, there's a little challenge for you.
‫So go ahead and create a directory which contains three friends arrays in which two family members should
‫be stored.
‫So you have multiple friends, right?
‫So just take a friend and then add two of the family members to the eject array and then again the next
‫friend will be the next entry.
‫Create one with two family members of that friend and so forth.
‫So that's the idea behind this friend's array or this eject array, which contains those three friends
‫arrays.
‫So let's say you have a friend called Marta and Marta has two brothers and one is Joe and the other
‫is Michael.
‫So you would enter Joe and Michael into the first entry of that eject array.
‫So the next point is to introduce family members from different families to each other via console.
‫So this is simply a statement in which they get introduced to each other.
‫So simply some text where the two names are included in, and you should do that three times.
‫So there should be three introductions.
‫So please go ahead, pause the video and try to do that yourself.
‫All right.
‫I hope you tried it.
‫And I hope I explained it well enough so you could understand what the actual job is.
‫So, first of all, let's create a jagged ray, and I'm going to call that one friends and family.
‫Your name could be very different.
‫That's no problem.
‫And it will be a new string, jagged ray.
‫And I'm going to enter the data like this new string of type array containing the information like Michael
‫and Sandy.
‫So let's say I have a friend whose brother and sister are Michael and Sandy.
‫Then I have a new string array of another friend and he has a father who is called Frank and his mother
‫is called Claudia.
‫Then we have another entry, new string, and let's say his brother is called Andrew and his cousin
‫is called Michel.
‫So these are just some made up names, but that's fine.
‫And so that's the jagged ray that you were supposed to create.
‫Of course, you can use different names and you could even have multiple names within that string and
‫so forth or within that string array and so forth.
‫But what I'm going to do now is simply introduce, for example, Michael to Claudia or Frank to Michele
‫and so forth.
‫And how do you do that?
‫Well, I use console writing right line in here, and I'm just going to say something like Hi.
‫And then first name, I would like to introduce second name.
‫So one to you.
‫And now of course, I need to get first name and second name.
‫So friends and family, friends and family at zero zero is going to be introduced.
‫So Michael is going to be introduced to, let's say, Frank.
‫And Frank is going to be also friends and family at the position one and zero.
‫So within the second array at it's position zero.
‫So that's the frank that I was talking about.
‫So now I just copy that line and I re name or change the values here.
‫So let's say now I want Claudia to be introduced to Andrew.
‫So I'm just going to say one and here it's going to be zero two.
‫And now let's introduce Sandy to Michelle and that will be zero one introduced to two and one.
‫So this will be two.
‫One is my Michelle and zero one is Sandy.
‫So now let's go ahead and run that code and we will need the console, that red line or red key.
‫Now, let's go ahead and look at the code.
‫Let's see what the console has to show.
‫And there we are.
‫So hi, Michael.
‫I would like to introduce Frank to you then.
‫Hi, Sandy.
‫I would like to introduce Andrew to you and so forth.
‫So you see, we simply introduced our friends family to each other.
‫So we had a big celebration and we needed to introduce them to each other and we simply stored their
‫families in separate strings within our string.
‫So we didn't have to create ten different strings where we have all the different friends.
‫You could, of course, go ahead and say or create strings with the friends names.
‫So something like String Array and this is going to be Joe's family and then you simply have a string
‫array with all his family members.
‫That's something that you can, of course do.
‫But then you only have Joe's friends and here more family, and here you have all the different families,
‫even though we don't specify to which friends those family members belong.
‫By the way, if you were wondering if you could do what I just explained, you can.
‫So you can simply go ahead and create an array.
‫For example, Joe's family, and you can store that within our jaggery so you don't have to create them
‫all in here.
‫You can actually create separate arrays and position them within your jaggery.
‫All right.
‫So you're not limited to this approach that we have seen in the last video.
‫You can also create different arrays.
‫So now you could even go ahead and do the same thing with Michael Sandy and so forth.
‫That would make it easier for you to read to whom the different family members belong.
‫So to whom?
‫Of your friends or to which of your friends?
‫All righty.
‫So now you have seen how to use directories, and I hope you could manage to solve this sort of problem
‫here.
‫And in the next video, we are going to see parameters and how to use arrays as parameters.
‫So you there.