I am new to
Java, programming, and intelliJ. I am trying to make a BMI Calculator using this code as my initial template which converts Fahrenheit to Celsius.
I have came up with the following code for BMI, but I keep getting an error message on the last part of my code.
then:
I get the following error messages:
Error:(19, 22) java: cannot find symbol
symbol: variable height
location: class org.Ten.BMI.BMIButtonListener
Error:(20, 22) java: cannot find symbol
symbol: variable weight
location: class org.Ten.BMI.BMIButtonListener
Error:(28, 9) java: cannot find symbol
symbol: variable resultLabel
location: class org.Ten.BMI.BMIButtonListener
I created a local field within BMIButtonListener for weight, height, resultLabel, and was able to compile but it did not calculate and listed exceptions.
Any help would be greatly appreciated.