7 pushed into stack2.
8 pushed into stack2
Exception in thread "main" java.lang.NullPointerException
sonu jha wrote:yeah..sure.. the new pop is below:
See the lines 7 and 15...i am updating the reference last after a pop operation...that's what was missing before...except for that it is all the same....
sonu jha wrote:The main prompts user input to fill up stack1, and should then proceed to fill up stack2 which would be sorted in ascending order. The following is the code:...