listing the orderedarray java program /orderedarray java /demonstrates ordered array class /to run this programc>java orderedapp ///////////////////////////////////////////////////////////////class ordarray private long[ /ref to array private int nelems/number of data items //public ordarray(int max/constructor new long[max]/create array nelems //public int size(return nelems//public int find(long searchkeyint lowerbound int upperbound nelems- int curinwhile(truecurin (lowerbound upperbound if( [curin]==searchkeyreturn curin/found it else if(lowerbound upperboundreturn nelems/can' find it else /divide range if( [curinsearchkeylowerbound curin /it' in upper half else upperbound curin /it' in lower half /end else divide range /end while /end find(/