(Solved): Q: Problem1. Write &…..
QUESTION Question Problem1. Write a java program that will PUSH and POP element using Stacks. Filename: StackPushPop.java ANSWERS: Step 1 The Java Code is given Below: Step 2 Code: import java.util.*; public class StackPushPop { public static void main(String args[]) { //creating an object of Stack class Stack <Integer> stk = new Stack<>(); System.out.println(“stack: ” + stk); //pushing …