public void PeekLastAdded() { stack = new StackAdt <int>(); stack.Add(1); stack.Add(lastAdded); startCount = stack.Count; valuePeeked = stack.Peek(); }
public void GetLastAdded() { stack = new StackAdt <int>(); stack.Add(1); stack.Add(lastAdded); startCount = stack.Count; valueRetrieved = stack.Get(); }
public void AddToStack() { stack = new StackAdt <int>(); stack.Add(valueAdded); }