I wanted to control size of some Stack< > object. when its size is greater than for example 1000 i want either to throw an exception or some other action
how can i control that?
how can i control that?