diff --git a/SimpleArrayMap/src/solution/SimpleArrayMap.java b/SimpleArrayMap/src/solution/SimpleArrayMap.java index e8cef81..d375246 100644 --- a/SimpleArrayMap/src/solution/SimpleArrayMap.java +++ b/SimpleArrayMap/src/solution/SimpleArrayMap.java @@ -86,7 +86,17 @@ public class SimpleArrayMap implements ISimpleMap { @Override public boolean contains(V v) { - // TODO Auto-generated method stub + + if (v == null) { + return false; + } + + for (int i = 0; i < values.length; i++) { + if (v.equals(values[i])) { + return true; + } + } + return false; }