diff --git a/SimpleArrayMap/src/solution/SimpleArrayMap.java b/SimpleArrayMap/src/solution/SimpleArrayMap.java index ba03245..208d1ec 100644 --- a/SimpleArrayMap/src/solution/SimpleArrayMap.java +++ b/SimpleArrayMap/src/solution/SimpleArrayMap.java @@ -48,7 +48,17 @@ public class SimpleArrayMap implements ISimpleMap { @Override public V get(K k) { - // TODO Auto-generated method stub + + if (k == null) { + return null; + } + + for (int i = 0; i < values.length; i++) { + if (k.equals(keys[i])) { + return values[i]; + } + } + return null; }