That's the whole piece of code I have. I post it again here.
sideCube is declared as this:
double sideCube = input.nextDouble();
When the user enters a double value, it is the argument...
Type: Posts; User: eleanorkit
That's the whole piece of code I have. I post it again here.
sideCube is declared as this:
double sideCube = input.nextDouble();
When the user enters a double value, it is the argument...
The cube_vol method is asking the user for an input of a double value of the side of the cube.
double sideCube = input.nextDouble();
Do I add a double value like this?
...
I have the following function cube_vol() to calculate the volume of a cube. It gives me an error as follows:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method...