filmov
tv
Java for beginners - Chapter 27 : Collections in Java Part 4 - Stack in Java
![preview_player](https://i.ytimg.com/vi/R3yHm_d3kik/sddefault.jpg)
Показать описание
Stack :
Stack is a LIFO object.
It extends Vector class directly and implements Random Access, List, Collections etc interface indirectly.
Methods of Stack :
push() : Pushes an item onto the top of this stack.
peek() : Looks at the object at the top of this stack without removing it from the stack.
pop() : Removes the object at the top of this stack and returns that object as the value of this function.
empty() : Tests if this stack is empty.
search() : Returns the 1-based position where an object is on this stack.
ankpro
ankpro training
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
C
C++
Components of the .Net framework
Hello World
Literal
Keywords
Variable
Data types
Operators
Branching
Loops
Arrays
Strings
Structures
Enums
Functions
Stack is a LIFO object.
It extends Vector class directly and implements Random Access, List, Collections etc interface indirectly.
Methods of Stack :
push() : Pushes an item onto the top of this stack.
peek() : Looks at the object at the top of this stack without removing it from the stack.
pop() : Removes the object at the top of this stack and returns that object as the value of this function.
empty() : Tests if this stack is empty.
search() : Returns the 1-based position where an object is on this stack.
ankpro
ankpro training
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
C
C++
Components of the .Net framework
Hello World
Literal
Keywords
Variable
Data types
Operators
Branching
Loops
Arrays
Strings
Structures
Enums
Functions