Bummer! You must be logged in to access this page.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Java Arrays!
You have completed Practice Java Arrays!
Preview
See how I solve the problem in this video!
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
So I'll start by creating a new string
array called names
0:00
and setting it equal to a few names
that I like.
0:03
Remember, to create an array literal,
0:06
we can use the brackets
and add the names in the middle.
0:08
I'll go with maple, moana,
0:13
and milkshake.
0:17
Awesome.
0:20
Next, we need to create an array of cows
that's the same length as our names array.
0:21
So create an array of cows called cows
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up