hey really strange error...help please.
this is my code
import javax.swing.JOptionPane; class GearPumps { public static void main(String[]args) { String input1; String input2; String input3; double gearw; double borediameter; double gearchambers; double gpm; double cir; int again; do { //This gets the input for the equations. input1 = JOptionPane.showInputDialog("Enter the gear width in Inches."); input2 = JOptionPane.showInputDialog("Enter the Bore Diameter."); input3 = JOptionPane.showInputDialog("Enter the distance across both Gear Chambers."); //converts the inputed strings to a double gearw = Double.parseDouble(input1); borediameter = Double.parseDouble(input2); gearchambers = Double.parseDouble(input3); //sets formulas for cubic inch revolution and gallons per minute; gpm =( 47.0 * gearw * ((2.0*borediameter)-gearchambers) * (gearchambers - borediameter)/2); cir = (6.0 * gearw ((2.0 * borediameter) -gearchambers) * (gearchambers - borediameter)/2); //displays results JOptionPane.showMessageDialog(null,"GPM: "+ gpm + "CIR: "+cir); //ask user to go again. again = JOptionPane.showConfirmDialog(null, "Another calculation?"); } while(again == JOptionPane.YES_OPTION); } }
and i get this error:
GearPumps.java:35: cannot find symbol
symbol : method gearw(double)
location: class GearPumps
cir = (6.0 * gearw ((2.0 * borediameter) -gearchambers) * (gearchambers - borediameter)/2);