@@ -0,0 +1,414 @@
+package leetcode211_220;%0A%0Aimport java.util.HashMap;%0A%0A/**%0A * Created by eugene on 16/4/13.%0A */%0Apublic class ContainsDuplicate %7B%0A%0A    public boolean containsDuplicate(int%5B%5D nums) %7B%0A        HashMap%3CInteger, Integer%3E map = new HashMap%3C%3E();%0A        for (int i=0; i%3Cnums.length; i++)%7B%0A            if (!map.containsKey(nums%5Bi%5D)) map.put(nums%5Bi%5D, 1);%0A            else return true;%0A        %7D%0A        return false;%0A    %7D%0A%0A%7D%0A

Contains Duplicate