Search:

Type: Posts; User: eleanorkit

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    599

    [SOLVED] Re: Calling a function not working

    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...
  2. Replies
    4
    Views
    599

    [SOLVED] Re: Calling a function not working

    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?

    ...
  3. Replies
    4
    Views
    599

    [SOLVED] Calling a function not working

    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...
Results 1 to 3 of 3