Question: in java, i have an assignment in which i am needing to create hashtables with openaddressing and chaining, Theres a function called getNextIndex, i have






els ves yundidel Belp no wases publis string getieyecrdo f return this.keynord: t no inage pubtio ArrayListestrings: getaetafencese f return this. Feferences; L pubic int cesparelorestect ofi 1f(0 fnstanetor dose )( hoses sther + (kest) of Pcturn thixi kepocsismapetocothapikeynard); rotuch 2i put throw nes RuntineException ( Hisghtable is tutl. \} 3 index=(index+1+ step + offset )= capacity; return index; 1 1) T000: 1I Put a key, vatue pair inte the tobte. Il If the key olreody exists/inactive, overfide 1t. Else, put it 11 Thror o Runtinebxtaption if there is on fnfintte loops. Si wases private int findindex (k keyi 4 Int index: * key.hesteede0 tasta-kength: If (index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
