Home > Back-end >  # # transfer () on a HashMap expansion, transfer the old data to new array of transfer () method of
# # transfer () on a HashMap expansion, transfer the old data to new array of transfer () method of

Time:05-07



As shown in figure, the table was traversing the entry arrays, "e" is for each entry key-value pairs, and e.n ext object is also a key value to an attribute (e), then the problem is coming, the second green box idea, next is an array of entry is stand for? Next should not be a entry object? Or am I wrong, a HashMap $Entry [4] this kind of writing is an element of an array of representative (object)? The top with written newTable behind and contradiction,
I am dizzy, bosses,

There is a problem below clearly I=4, should be inserted into the index 4, why the assignment after newTable show insert in index 7... I was dizzy.. Please leaders express... Thank you
  • Related