final int len = dictionary.length; if (len != values.length) { throw new IllegalArgumentException("dictionary[] and values[] must be the same length"); } mHead = new Node(); for (int i = 0; i < len; i++) { mHead.add(dictionary[i], values[i]); }
return mHead.getNode(key);