Thanks Norm.
Type: Posts; User: LoganC
Thanks Norm.
Any insight on going about fixing this? If statements make this hard.
As far as scope, we haven't learned about that in class yet.
Variables are defined below
if (shapeNum == 1) {
String whatBase = JOptionPane.showInputDialog("Triangle Base?");
double triBase = Double.parseDouble(whatBase);
...
The only error I am getting from compiler is
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any>
at area.main(area.java:53)
Java Result:...
Getting cannot find symbol errors in main:
areaTriangle (triHeight, triBase, triOutput, shapeNum);
areaCircle (circOutput, circRadi, shapeNum);
areaRectangle (rectOutput, lengthRect,...
My assignment is to use jOptionPane to rewrite a program that we made earlier, I am successful so far except for the lines 51-53. Those used to be error free but after rewriting main using...