}
if (!(otherStack instanceof FloatStack))
{
return false;
}
FloatStack stack = (FloatStack) otherStack;
if (this.size() != stack.size())
{
return false;
}
for (int i = 0; i < this.size(); i++)
{
if (Float.compare(this.peekAt(i), stack.peekAt(i)) != 0)
{
return false;
}
}
return true;