Lab from Experiments in Java: Session J6: Arrays and Hash Tables
Arrays in Java parallel vectors in Scheme. In both cases, access is provided to specific elements in one step, without traversing through long lists.
Begin this lab by reading the Discussion section of the specified lab for "Counting Words" and "Hash Tables". (Feel free to skim the earlier material, if you wish.)
While experiments J6.1 through J6.3 provide good experience with arrays in Java, you should focus much of your attention on experiments J6.4, Counting Words, and J6.5, Hash Tables. The first of these two sections provides a context for counting and arrays, and this forms the motivation for the discussion of hash tables.
This document is available on the World Wide Web as
http://www.math.grin.edu/~walker/courses/153.sp01/lab-arrays.html
created April 17, 2001 by Henry M. Walker