Is it worth separating BMI and person classes?
See below to see how I can clean this up to use as a larger program to enter into my repertoire to use later on. import java.awt.Color; import java.awt.color.*; import java.util.Scanner; public class Person { protected int age = 0; protected int height = 0; protected int weight = 0; private int leglength = 0; private int armlength = 0; public double bmi = 0; private Color Eyecolor = Color.green; protected String gender = null; private String bodytype = null; private String headshape = null; private boolean Person ; public static void main(String[] args) { int weight = 0; int height = 0; int bmi = 0; String Bmi = null; Scanner input = new Scanner(System.in); Person person = new Person(); System.out.print("Enter your Height: " ); height = input.nextInt(); System.out.print("Enter your Weight: "); weight = input.nextInt(); bmi = ((weight* 703)/(height * height)); System.out.println("Your BMI is:" + bmi); if(bmi<18.5) Bmi = "Underweight"; else if(bmi > 18.5 && bmi <24.9) Bmi = "Normal"; else if(bmi > 24.9 && bmi<29.9) Bmi = "Overweight"; else { Bmi = "Obese"; } System.out.print("You are " + Bmi); } }