Home Segments Top Top Previous Next

Chapter 29:

How to Move Arrays
into and out of Methods

In Chapter 27, you learned how to use tokenizers to read integers and strings from a file. In Chapter 28, you learned how to store information in arrays.

Now, you can combine what you learned about files with what you learned about arrays to read movie-rating information from a file, to create movie instances, and to store those instances in an array.