Check to see if an object has been created
<p>I am trying to create a program in which - I am putting this as simply as possible - I find the sides of a triangle.</p>

<p>The problem with doing so is that there might be another triangle that has already been found with the exact same sides. For example:</p>

<p>If the program find a triangle with sides <code>1, 2, 1</code> and another with <code>1, 1, 2</code>, then, because of the rules of what I am doing, I will not need to use this triangle again since it has the same sides, just in a different order.</p>

<p>I would like to create a class that I can enter the triangle values in, like <code>= new triangle(x,y,z)</code> where x, y, and z are all integers of the sides.</p>

<p>This is not the problem, as I already have the class. The question is how I can check to see if the triangle has already been made with the same sides as the one I am entering?</p>

<p>Thanks.</p>
