String/Int variable in java?
OK, I am working on a calculator, and I would like it to be able to do algebra and more. However, I would also like it to show every step of the problem and the solution.
The problem is that I would need a variable. From my understanding, an int or double has to be of defined value before it can be used. So I thought the next best step would be to use a String for the equation an manipulate it that way.
Well, the problem is that this would take so much RAM and code I doubt it would be useful. Is there any way to go around this? Or am I forced to use Strings?
I thought about making a variable class that would extend double, but I am (again) not sure if that would work correctly. :confused:
So I need a little guidance in this thing.