Assistance with unintended termination of Get area of circle and rectangle Program
Hello Java connoisseurs, I'm new to this forum, but not new to internet forums. ;) The following code is practice I'm doing for an upcoming exam. I have 3 classes (application, GUI, and structures).
I want to enter 1 for get the area of a circle and 2 for square (okay, I realize that a square is really quadrilateral)
Anyway, here is/are the problems. Eclipse shows no errors but as soon as I enter 1 or 2, the program terminates.
code deleted
Hopefully you all are able help this extreme java noob out.
Re: Assistance with unintended termination of Get area of circle and rectangle Progra
In GUI, I think I'm storing my input as strLaunchMessage and then using intInput in the if statement. Correct? That may cause a problem...
How do I "connect the dots" there?
Re: Assistance with unintended termination of Get area of circle and rectangle Progra
Problem solved
I needed to add:
intLaunchMessage = Integer.parseInt(strLaunchMessage);