Array of Arrays all unique elements

I think this is a "Unique" problem I have here, seriously though.

I have an array of coordinates that i've imported from a text file:

Code:

`float[][] tempPoints;`

String[] strLines = loadStrings(exportedCoordinates);

tempPoints = new float[PointsCount][2];

for(int r=0;r<strLines.length;r++)

{

String[] coordsList = split(strLines[r], ',');

tempPoints[r][0] = float(coordsList[0]);

tempPoints[r][1] = float(coordsList[1]);

}

The importing is working fine, but here's where the problem lies.

Code:

`void findDuplicates()`

{

for(int r=0;r<tempPoints.length;r++)

{

for(int p=0;p<tempVPoints.length;p++)

{

if(!list.contains(tempVPoints[p][0]) && !list2.contains(tempPoints[p][1]))

{

list.add(tempPoints[r][0]);

list2.add(tempPoints[r][1]);

}

}

}

}

Goal:

I need to create a 2D array that contains all unique sets of coordinates. (coordinates being: coord[i][0] //x coord[i][1] //y )

I initially thought I would use a set, but the problem with that is I need to make sure that both of the elements never repeat together. They can be individually there, but no set of coordinates can repeat in the array.

example of why a SET does not work for this problem:

coordinate[400][0] //x

coordinate[300][1] //y

coordinate[400][0] //x -- 400 appears twice, thus it is removed prematurely.

coordinate[100][1] //y