int hashval hashfunc(key)/hash the key while(hasharray[hashval!null/until empty cell/found the keyif(hasharray[hashvalidata =keydataitem temp hasharray[hashval]/save item hasharray[hashvalnonitem/delete item return temp/return item ++hashval/go to next cell hashval %arraysize/wraparound if necessary return null/can' find item /end delete(/public dataitem find(int key/find item with key int hashval hashfunc(key)/hash the key while(hasharray[hashval!null/until empty cell/found the keyif(hasharray[hashvalidata =keyreturn hasharray[hashval]/yesreturn item ++hashval/go to next cell hashval %arraysize/wraparound if necessary return null/can' find item //end class hashtable ///////////////////////////////////////////////////////////////class hashtableapp public static void main(string[argsthrows ioexception dataitem adataitemint akeysizenkeyspercell/get sizes puttext("enter size of hash table")size getint()puttext("enter initial number of items")