What does the following code do?
public static boolean codeBlock(ArrayList<Integer> array) {
for (int i = 0; i < array.size() - 1; i++) {
for (int j = i + 1; j < array.size(); j++) {
if (array.get(j) == array.get(i)) {
return true;
}
}
}
return false;
}