also notice that there' no convenient way to display the contents of the array somewhat crudelythe lowarrayapp class simply uses for loop and the getelem(method for this purpose we could avoid repeated code by writing separate method for lowarrayapp that it could call to display the array contentsbut is it really the responsibility of the lowarrayapp class to provide this methodthus lowarray java demonstrates how you can divide program into classesbut it really doesn' buy us too much in practical terms let' see how to redistribute responsibilities between the classes to obtain more of the advantages of oop who' responsible for whatin the lowarray java programthe main(routine in the lowarrayapp classthe user of the data storage structure must keep track of the indices to the array for some users of an array who need random access to array elements and don' mind keeping track of the index numbersthis arrangement might make sense for examplesorting an arrayas we'll see in the next can make efficient use of this direct "hands-onapproach howeverin typical program the user of the data storage device won' find access to the array indices to be helpful or relevant in the cardfile program in for exampleif the card data were stored in an arrayand you wanted to insert new cardit would be easier not to have to worry about exactly where in the array it is going to go the higharray java example our next example program shows an improved interface for the storage structure classcalled higharray using this interfacethe class user (the higharrayapp classno longer needs to think about index numbers the setelem(and getelem(methods are gonereplaced by insert()find()and delete(these new methods don' require an index number as an argumentbecause the class takes responsibility for handling index numbers the user of the class (higharrayappis free to concentrate on the what instead of the howwhat' going to be inserteddeletedand accessedinstead of exactly how these activities are carried out figure shows the higharray interface and listing shows the higharray java program