Chapter 9: Arrays
The exercises here are taken from my forthcoming book
The Java Developer's Resource.
Quiz
- 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?
- 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?
- What's the mininum number of components an array can have?
- What's the difference between a brace and a bracket?
Exercises
- 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