Friday, November 11, 2011

Creating a toString method !?

Actually creating the toString method itself is relatively simple, but your question doesn't give a lot of information about what you're expected to put in it. As far as state information is concerned, the only information that seems available from the cl is whether or not the stack is empty, so I'm not sure what is meant by "correctly represents the current stack"!

No comments:

Post a Comment