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 Maps!
You have completed Java Maps!
Preview
In this video we'll learn what Maps are and create our own Map!
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
Hi, I'm Ben, and in this course
we're going to learn about maps.
0:00
In Java a map is a data type that
lets us store key value pairs.
0:04
You may not know it,
0:09
we've already been using key value
pairs with lists and arrays.
0:10
Let's say we have a list
that looks like this.
0:15
It has Waffles at Index 0, Gyros at
Index 1, and Enchiladas at Index 2.
0:18
Another way to look at this would
be as a mapping of keys to values.
0:24
So with a list or an array the keys
are always going to be the same.
0:29
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