Area calculation tested, worked fine
but the area and cost will not calculate appropriately
Use final with global variables
Snipe Anthony wrote:But no matter what length and width I enter, the cost and area both come back equaling 0 on the output instead of the correct calculations.
area as final, are you sure? then will compiler allow to reassign new value to area on line number 89?
John Joe wrote:Use final with global variables
Please read my previous comment.
Snipe Anthony wrote:area is being calculated but cost is still not shoeing up in the output. Also, Ganesh how would I go about splitting the radio buttons so they cannot be chosen at the same time?
Remove the final keyword
Ganesh Patekar wrote: area as final, are you sure? then will compiler allow to reassign new value to area on line number 89?
You mean the compiler doesn't show any errors. I am afraid I can see a lot wrong with your code.
Snipe Anthony wrote:I Have no errors in my codes . . .
I think another error is making a frame implement listener interfaces. I think that is incorrect object orientation, and also you end up with error‑prone if‑elses or switches.
I've started, so I'll finish.