public class FixedStack implements Stack {
// implement a ring buffer to make sure that it is always safe to push an object into the stack,
// if stack size is exceeded, the eldest objects are overwritten
This feature is not implemented?
I found that the eldest objects were not overwritten.
public class FixedStack implements Stack {
// implement a ring buffer to make sure that it is always safe to push an object into the stack,
// if stack size is exceeded, the eldest objects are overwritten
This feature is not implemented?
I found that the eldest objects were not overwritten.