Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    905

    Re: [BEGINNER] Method not working

    The variable BMI is defined here as local to the method:

    public double calculateBMI(double BMI)

    Its value is never used in the method and could be removed like this:

    public double...
  2. Replies
    3
    Views
    905

    Re: [BEGINNER] Method not working

    What are the values of the variables used in the computation: startingWeightKG, heightMeters and heightMeters?
    Add a print statement first thing in the method that prints the values of those...
Results 1 to 2 of 2