items currently in the array this is helpful for the class usermain()when it calls find(if find(returns nelemswhich main(can discover with size()then the search was unsuccessful listing shows the complete listing for the orderedarray java program listing the orderedarray java program /orderedarray java /demonstrates ordered array class /to run this programc>java orderedapp import java io */for / ///////////////////////////////////////////////////////////////class ordarray private double[ /ref to array private int nelems/number of data items //public ordarray(int maxa new double[max]nelems /constructor /create array //public int size(return nelems//public int find(double 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