import java.util.Scanner;
public class feetToMeters {
public static void main (String [] args) {
final double feetToMeters = 0.305;
Scanner input = new Scanner (System.in);
System.out.println ("Enter a value for feet: ");
double value = input.nextDouble();
System.out.println (value + " feet is " + " meters " + meters);
}
}
我还需要添加什么才能将英尺转换为米?谢谢!