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 Java Arrays!
You have completed Java Arrays!
Preview
Let's explore two dimensional arrays. An array of arrays. Rows and Columns.
Copy and Paste
// Brian's
{1, 2, 4, 2, 6, 5, 4, 3, 3, 2, 5, 7, 2, 7, 8, 4, 3, 2}
// Rohald's
{2, 3, 5, 1, 1, 2, 3, 1, 1, 2, 4, 1, 3, 3, 2, 6, 3, 2}
// Laura's
{4, 4, 2, 1, 2, 2, 1, 4, 2, 2, 2, 3, 2, 5, 8, 1, 2, 2}
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
Well, don't let the name make it
more difficult than it needs to be.
0:00
We're going to explore
two-dimensional arrays,
0:04
or 2D arrays,
which is really just an array of arrays.
0:06
The arrays that we've been working with
have been one-dimensional.
0:11
2D arrays are super handy at helping
0:14
to describe things in rows and columns.
0:17
If you've used this spreadsheet before,
you can definitely
0:20
imagine this sort of thing.
0:23
In fact, why don't we just start there?
0:24
So here I've created some golf scorecards
using a Google Sheet.
0:28
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