// A program that displays the body mass index of a person.
public class BodyMassIndex
{
     public static void main (String [] args)
     {
          Person girl = new Person ("Alice", 64, 135);
          girl.displayBMI ();
     } // main method
} // class BodyMassIndex

// A class that computes and then displays the body mass index of a person.
class Person
{
     private String name;
     private int height, weight;
 
     Person (String n, int h, int w)
     {
          name = n;
          height = h;
          weight = w;
     } // constructor
 
     // A method that computes and displays the body mass index.
     public void displayBMI ()
     {
          int bmi = (705 * weight) / (height * height);
          System.out.println (name + "'s body mass index is " + bmi);
     } // displayBMI
} // class Person