Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public V get(String key) {
  2.         int step = 0;
  3.         for (int i = 0; i < max - 1; i = getNextLocation(i, step, key)) {
  4.             step++;
  5.             if (arr[i] != null && ((Pair) arr[i]).key.equals(key)){
  6.                 return ((Pair) arr[i]).value;
  7.             }
  8.         }
  9.         return null;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement