Search:

Type: Posts; User: Nathan_Lawd

Search: Search took 0.27 seconds.

  1. Replies
    3
    Views
    896

    Re: [BEGINNER] Method not working

    The member enters them in directly:


    System.out.print("Please enter your height (in meters, between 1m and 3m): ");
    double height = input.nextDouble();
    System.out.print("Please...
  2. Replies
    3
    Views
    896

    [BEGINNER] Method not working

    public double calculateBMI(double BMI)
    {

    BMI = (double)startingWeightKG/heightMeters*heightMeters;
    return BMI;

    }
Results 1 to 2 of 2