 Hey everybody, this is Brian. Today we'll be covering arrays. What are arrays? Arrays are a simple way of making groups of variables. Let's say you need to know the age of couple people. We'll say int x equals zero. That's what you're used to. Let's back up a little bit here. Throw some brackets in there. And now say new int and let's say we want to know the age of three people. Now what have we done here? This looks kind of weird. You see we have the int that you're used to. And then some brackets. Brackets denotes an array. And then the name of the array which is x. And we're saying it's a new array and then bracket three. Well what you're saying is you want an array of integers named x and you have to create a new array of integers and we're going to give it three. Three is the maximum limit here. Now what you've done is created three variables in memory called x. They're all members of the array. We'll do a four each loop and we'll say four int m in x and we will just do a system.out.print line. This is kind of one of those do as I say. Not as I do days. There we go. System out print line. We're going to print m. So what we're going to say is for each integer in x because remember x is an array that contains multiple integers print it out. And you see we have three zeros. Why are they zeros? Well you haven't done anything with these. For example let's say you say x and we'll say x2 and we'll say he's 45 years old. Now you notice how you're using these brackets. What you're saying is the array x slot two or the variable in there make it 45. Now when you run this you notice the third one is 45. Why is that? Well arrays are zero based meaning you always start with zero. This is zero, this is one, this is two. And to kind of show you what I'm talking about here we'll say zero, one two. So we'll say zero is the youngest at two years old. One let's say one is 17 year old and two is 45. You can see that zero is two. One is 17 and three is 45. And we're just looping through our array. Well that's the basic array. I hope you found this video educational and entertaining and thank you for watching.