Tag Archives: Stack

Test Stack

Problem A developer has written a stack designed to hold a maximum of five variables and he has asked you to test it. How would you test that stack? Solution Here are the general guidelines to test the stack. Note …

Read more »

Java stack class example

Problem Write a Java class to implement a stack data structure using an array for storage. The stack must support pop and push operations. Java stack implementation A stack is a LIFO (last in first out) data structure. A push …

Read more »