Question: hi there i got stuck on a homework question that i have to do in java .I am not able to solve this hoemwork question

hi there i got stuck on a homework question that i have to do in java .I am not able to solve this hoemwork question .May i please get some help?Please kindly do this in java .So i can run it on eclipse .The instructions are given below.Thanks i will be sure to leave a thumbs up:)
///What to do///
-pllss make sure to include the entire program -main method and all
-create a stack named s and add the numbers in your
ID number to it .
-Then remove and print out the bottom elements of the stack
-After you are done the rest of the stack should be in its original order
-Theres 2 pictures attached shows an example as well as what is stack code look like .Please read the first to gain idea .Read the second imake to give you idea of what stck code should look like
 hi there i got stuck on a homework question that i
have to do in java .I am not able to solve this

Remove and print out the bottom element of the Stack named 's'. After you are done, the rest of the Stack should be in its original order. The picture shows an example of this process. 1 2. 1 3 2. 4 3 S's bottom Before S's bottom After Prints: 4 90 3(b) What is printed out in each location? Stack t - new Stack (); t.push(-10"); t.push("11"); TextArea.append(-+t.size 0); TextArea.append(*.t.pop()); t.push(-12"); TextArea.append("--t.pop()); TextArea.append(""+t.size ()); t.push("13"); TextArea.append(""+t. peek ()); TextArea.append(*"+t.pop ());

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!