How do I add a main class? Where? Here is my code
import java.util.*;
class healthProfile {
private String first;
private String last;
private char gender;
private int birthMonth;
private int birthDay;
private int birthYear;
private double height;
private double weight;
public healthProfile (String f, String l, char g, int m, int d, int y, double h, double w) {
first = f;
last = l;
gender = g;
birthMonth = m;
birthDay = d;
birthYear = y;
height = h;
weight = w;
}
public String getFirst() {
return first;
}
public String getLast() {
return last;
}
public char getGender() {
return gender;
}
public int getBirthMonth() {
return birthMonth;
}
public int getBirthDay() {
return birthDay;
}
public int getBirthYear() {
return birthYear;
}
public double getHeight() {
return height;
}
public double getWeight() {
return weight;
}
public void setFirst(String f) {
first = f;
}
public void setLast(String l) {
last = l;
}
public void setGender(char g) {
gender = g;
}
public void setBirthMonth(int n) {
birthMonth = n;
}
public void setBirthDay(int n) {
birthDay = n;
}
public void setBirthYear(int n) {
birthYear = n;
}
public void setHeight(double n) {
height = n;
}
public void getWeight(double n) {
weight = n;
}
public double calcBMI() {
return (weight * 703) / (height * height);
}
public int calcAge() {
Calendar cal = Calendar.getInstance();
int day, month, year;
day = cal.get(Calendar.DATE);
month = cal.get(Calendar.MONTH) + 1;
year = cal.get(Calendar.YEAR);
if (month > birthMonth) {
return year - birthYear;
}
if (month == birthMonth && day >= birthDay) {
return year - birthYear;
}
return year - birthYear - 1;
}
public int calcMaxHR() {
return 220 - calcAge();
}
public double targetMinHR() {
return calcMaxHR() * .5;
}
public double targetMaxHR() {
return calcMaxHR() * .75;
}
}