I have this assignment for school where I have to create a very simple calculator program. No GUI, not even command line inputs. It's all being run inside the program with preset commands.
Here's the problem:
I can't figure out how to append a digit to the end of a variable.
The calculator must work like this:
(it is java, not php. The highlighting makes it easier to read)
I can't for the life of me figure out how to set 5 to a variable, and then add 3 to the end of that variable. Can anyone help? Many thanks.
//Should display: "53"
Note: the digit method requires the number to be an int