Answered You can hire a professional tutor to get the answer.
Question 1: Expand the implementation of the class stack to include methods to: reinitialize the stack to empty, test for an empty stack (underflow...
Question 1: Expand the implementation of the class stack to include methods to: reinitialize the stack to empty, test for an empty stack (underflow condition), test for a full stack (overflow condition), and to perform a peek operation. Include a progressively developed driver program to demonstrate the functionality of each new method.
Question 2: Using the generic capabilities of Java 5.0, modify the implementation of the structure SinglyLinkedList to make it fully generic. Include a driver program that demonstrates the functionality of the class with two homogeneous SinglyLinkedList object that store two different kinds of nodes.