Chapter 5. Lists, Arrays, and Dictionaries
In previous chapters, you learned how to declare and use a single variable and its type. Now it's time for something more complex. As you know, we can store a value in a variable. But we can also store more than one value in a single variable. In this chapter, we will be talking about special types of variables that allow us to store many values at once.
In this chapter, we will cover the following topics:
- What arrays are and why it is good to use them
- Storing data in an array
- Retrieving data from an array
- Lists are powerful, using collections
- List or
ArrayList
- An introduction to dictionaries