// 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