```
static boolean containsDuplicate(int[] nums) {
boolean result = false;
int len = nums.length;
for (int i = 0; i < len; i++){
for (int j = 0; j < len; j++){
if (i == j){
continue;
}
if (nums[i] == nums[j]){
result = true;
}
}
}
return result;
}
```