The error that I am receiving is:import javax.swing.*; public class Circle { public double showRadius; public Circle (double showRadius){ input=showRadius; } public void main(String[] args) { double myRadius = Double.parseDouble(JOptionPane.showInputDialog("Enter first integer")); double myDiameter; double myArea; calcRadius(1); calcRadius(myRadius); calcArea(1); calcArea(myRadius); calcDiameter(1); calcDiameter(myRadius); } public void calcRadius (double myRadius){ double newRadius; newRadius = Double.parseDouble(JOptionPane.showInputDialog("Enter Radius")); } public void calcDiameter (double myRadius){ double newDiameter; newDiameter = showRadius * 2; } public void calcArea (double myRadius){ double newArea; newArea = 2 * myRadius * 3.14; }
C:\Users\Michael\Documents\NetBeansProjects\Circle \src\circle\Circle.java:6: cannot find symbol
symbol : variable input
location: class Circle
input=showRadius;
I am new to this whole thing, and I have no clue how to fix that.
PS: Yes, I know I'm bad at coding Java.