Possible Duplicate:
Java Array, Finding Duplicates
I have this array
int[][] array = {{1,2,3,4}, {5,6,2,8}, {9, 10, 11, 12}, {13, 14, 15, 16}};
If there are duplicate elements in this array, i need to return false. For example index [0][1] and [1][2] are equal. I need a method that detects this. Also it would be nice if the solution only used primitives, arrays, and loops.