At one point it compares array(1)compareto(array(1)) is this a problem? Amount birds is the amount of elements in array. I am trying to remove duplicate string in the array. Is it fixable or should i re approach.
for (i = 0; i <= amountBirds - 1; i++)
{
for (x = 1; x <= amountBirds; x++)
{
duplicate = birdArray[i].compareTo(birdArray[x]);
if (duplicate == 0)
{
birdArray[i] = birdArray[x];
}
}
}