LeetCode Solutions/Hash Table/Contains Duplicate/Contains Duplicate.java
class Solution {
    public boolean containsDuplicate(int[] nums) {
        Arrays.sort(nums);
        for (int i=0; i<nums.length-1; i++){
            if (nums[i] == nums[i+1]){
                return true;
            }
        }
        return false; 
    }
}