Re: Help with Java Calculator Program
DeAndrea Monroe wrote:
I am now getting many errors pertaining to my code. Most of the errors
say; class, interface, or enum expected. I thought I made classes for
everything that's being used. I also made a package for
calculatorEngine, but I'm still getting errors there.
You may not be going at this the best way.
I usually start a program by writing something very simple that does a
tiny subset of the required behavior, and is only a dozen lines or so.
Once that program is working, I go into a loop. Whenever all existing
tests are working I write a more demanding test, add the code the
program should need to pass that test, and get all tests, including the
new one, working correctly.
If I am not familiar with the language, the initial program and the
early steps are all a lot smaller, maybe half a dozen lines for the
initial program.
Any really basic problems with my understanding of the language
fundamentals get solved with the tiny initial program.
If you were to try that approach, and needed help getting the initial
program working, you would be able to post the entire initial program,
along with the relevant directory structure and compile command, in a
reasonably short article.
See http://www.patriciashanahan.com/beginner.html for some more discussion.
Patricia