private string firstnameprivate int age//public person(string laststring firstint /constructor lastname lastfirstname firstage //public void displayperson(system out print(last namelastname)system out print("first namefirstname)system out println("ageage)//public string getlast(return lastname/end class person /get last name ///////////////////////////////////////////////////////////////class classdataarray private person[aprivate int nelems/reference to array /number of data items //public classdataarray(int maxa new person[max]nelems /constructor /create the array /no items yet /public person find(string searchname/find specified value int jfor( = <nelemsj++/for each elementifa[jgetlast(equals(searchname/found itembreak/exit loop before end if( =nelems/gone to endreturn null/yescan' find it