Question: Using Java I am adding large numbers using stacks my issue is that some of the strings aren't adding up correctly or are missing numbers
Using Java I am adding large numbers using stacks my issue is that some of the strings aren't adding up correctly or are missing numbers for example 99999 + 999 = 99998 instead of 100998
here's my code








\begin{tabular}{|l|l|l|l|} LinkedStack & StackUnderflowException & StackInterface & Item \\ \hline \end{tabular} StackUnderflowException - Add large numbers lerflowException: StackUnderflowException: Pop attempted on empty stack StackInterface - Add large numbers blic class Item protected T info; protected Item next; public Item() {{info=null;}next=null; public Item(T info) { this.info = info; next = null; Comp BlueJ: Terminal Window - Add large numbers 99999+999=99998 Can only enter input while your program is running
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
