PersonManager.java

package model;

import java.util.ArrayList;

public class PersonManager {

private ArrayList <Person> myPersons = new ArrayList<Person>();

public ArrayList<Person> getMyPersons() {
return myPersons;
}

public void setMyPersons(ArrayList<Person> myPersons) {
this.myPersons = myPersons;
}

public void addPerson(Person myPerson)
{
myPersons.add(myPerson);
}

public double calculateBMI(double height, double weight)
{
double BMI = weight / ( height * height );

return BMI;

}

}

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.