package Myth;
import java.util.Scanner;
public class Practice
{
public static void heightEstimator(double momH, double dadH)
{
Scanner kb= new Scanner(System.in);
System.out.println("Enter your Mothers Height in Feet: ");
momH= kb.nextInt();
System.out.println("Enter your Fathers Height in Feet: ");
dadH= kb.nextInt();
double w= (dadH+momH)/2;
System.out.println("You will be "+ w+ "Ft.");
}
public static int shoeSize(double x)
{
Scanner z= new Scanner(System.in);
System.out.println("Enter your Fathers Heigh in Inches: ");
x= z.nextInt();
double y= x/6;
System.out.println("Your shoe size will be: "+ y);
return 0;
}
public static void main(String[] args)
{
heightEstimator(0, 0);
shoeSize(0);
}
}
コードでこのエラーが発生し続ける理由がわかりません。コードの何が問題になっていますか?