That was to be expected. If you look at the 'Vector' API (a Stack extends it)
you see how the equals method is defined. Not only should the types be equal,
but the stacks must be of the same size, and for each i Q1(i) must be equal to
So, Stack(1,2,3) equals Stack(1, 2, 3) but Stack(1, 2, 3) <> Stack(2, 1, 3).
There are three kinds of actuaries: those who can count, and those who can't.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop