import javax.swing.*;
public class Pool
{
public static void main(String args[])
{
int input1;
int input2;
int input3;
int Volume;
input1=JOptionPane.showInputDialog(null,"Enter the length of the swimming pool:");
input2=JOptionPane.showInputDialog(null,"Enter the width of the pool:");
input3=JOptionPane.showInputDialog(null,"Enter the average depth of the pool:");
Volume=input1*input2*input3;
System.out.println("The volume for the pool is: "+ Volume);
}
}
I have no idea what my error is except that it has something to do with the 3 statements requesting for the InputBoxes. The error in the build output shows the arrow between all the .showinputdialog and (null,.
Can anyone help me out? I'm stumped.