/**
* Book: Data Structures and Algorithms in Java, by Robert LaFore
* Chapter 2:
* highArray.java
* demonstrates array class with high-level interface
* to compile this code: javac highArray.java
* to run this program: java HighArrayApp
*/
class HighArray {
private long[] a; // ref to array a
private int nElems; // number of data items
public HighArray(int max) { // constructor
a = new long[max]; // create the array
nElems = 0; // no items yet
}
public boolean find(long searchKey) { // find specified value
int j;
for (j=0; j