Chapter 9. Storing Information with Arrays

<feature><title></title>

WHAT YOU’LL LEARN IN THIS HOUR:

  • Creating an array

  • Setting the size of an array

  • Giving a value to an array element

  • Changing the information in an array

  • Making multidimensional arrays

  • Sorting an array

</feature>

No one benefited more from the development of the computer than Santa Claus. For centuries, humankind has put an immense burden on him to gather and process information. Old St. Nick has to keep track of the following things:

  • Naughty children

  • Nice children

  • Gift requests

  • Homes with impassable chimneys

  • Women who want more from Santa than Mrs. Claus is willing to let him give

  • Countries that shoot unidentified aircraft first and ask questions later

Computers were a great boon to the North ...

Get Sams Teach Yourself Java™ in 24 Hours, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.