Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public V get(String key) {
- int step = 0;
- for (int i = 0; i < max - 1; i = getNextLocation(i, step, key)) {
- step++;
- if (arr[i] != null && ((Pair) arr[i]).key.equals(key)){
- return ((Pair) arr[i]).value;
- }
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement