Chapter 9: Arrays

The exercises here are taken from my forthcoming book The Java Developer's Resource.

Quiz

  1. What's the index of the first component of a one hundred component array? of a two hundred component array? of a one thousand and twenty-four component array?
  2. What's the index of the last component of a one hundred component array? of a two hundred component array? of a one thousand and twenty-four component array?
  3. What's the mininum number of components an array can have?
  4. What's the difference between a brace and a bracket?

Exercises

  1. Write a program that randomly fills a 3 by 4 by 6 array, then prints the largest and smallest values in the array.


[ Exercises | Cafe Au Lait | Books | Trade Shows | Links | FAQ | Tutorial | User Groups ]

Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
Last Modified August 20, 1996