I am just starting out in Java, I have lots to learn. I get the following error code.
Does this mean that I should have gender as a String?
public class Height
public static void main (String args)
int inches, feet,mFeet, mInches, fFeet, fInches, cFeet, cInches;
int mHeight, fHeight, cHeight;
Scanner keyboard=new Scanner (System.in);
System.out.println("Enter the child's gender (M or F):");
System.out.println("Error - Invalid gender");
System.out.println("Enter mothers height (feet):");
System.out.println("Enter the mothers height (inches):");
System.out.println("Enter fathers height (feet):");
System.out.println("Enter the fathers height (inches):");
//convert input form mother and father to inches and estimate the adult height of the child//
//male child formula//
// female child formula//
//turn child height into feet and inches//
System.out.println("The estimated adult height of this child is "
+ cHeight/12+" feet "