Welcome to Java Programming Forums. Try to read the forums Rules.
How will you solve this problem if you try to do it manually? Take a copy and pencil, draw a stack with the above data and try doing...