چند نکته در مورد Stack در جاوا

  1. Stack is another class of list interface that does all the operations on the top of the collection.
  2. stack supports LIFO operation. last in first operation.
  3. stack support some methods to do this operations. those are:
    1-push: adds the element to the top of the stack.
    2-pop: deletes the the top most element from the stack.
    3-peek: returns data most elevate from the stack.


نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد