(K key, V value)
| 11 | pairs = new Object[length][2]; |
| 12 | } |
| 13 | public void put(K key, V value) { |
| 14 | if(index >= pairs.length) |
| 15 | throw new ArrayIndexOutOfBoundsException(); |
| 16 | pairs[index++] = new Object[]{ key, value }; |
| 17 | } |
| 18 | @SuppressWarnings("unchecked") |
| 19 | public V get(K key) { |
| 20 | for(int i = 0; i < index; i++) |