Question: Implement STACK of processes in a System using LinkedList class: - Provide the menu as shown below; use an infinite loop; stop when user opts
Implement STACK of processes in a System using LinkedList class: - Provide the menu as shown below; use an infinite loop; stop when user opts 4. - Add a process should add an int number at the top of queue using the method addFirst(). - Remove a process should delete the int from top using the method removeFirst(). - Show the stack should display the numbers on the stack using the method System.out.printin(). (Sample run of the program )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
